From 8dc5f09f80c975d31487efa7a3d6b6e51805744a Mon Sep 17 00:00:00 2001 From: kraftbj Date: Fri, 6 Dec 2024 15:19:36 +0000 Subject: [PATCH] js-packages: Fix some JS lints ahead of the eslint 9 upgrade (#40489) Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12201088977 Upstream-Ref: Automattic/jetpack@8c69a5ea26fe8ea99d2f77435f048a6badee61ed --- composer.lock | 56 +++++++++---------- .../jetpack-blaze/build/editor.asset.php | 2 +- .../automattic/jetpack-blaze/build/editor.js | 2 +- .../dist/jetpack-connection.asset.php | 2 +- .../dist/jetpack-connection.js | 2 +- .../tags-education/tags-education.asset.php | 2 +- .../build/tags-education/tags-education.js | 2 +- .../wpcom-block-description-links.asset.php | 2 +- .../wpcom-block-description-links.js | 2 +- .../wpcom-block-editor-nux.asset.php | 2 +- .../wpcom-block-editor-nux.js | 2 +- ...om-blocks-event-countdown-editor.asset.php | 2 +- .../wpcom-blocks-event-countdown-editor.js | 2 +- .../wpcom-blocks-timeline-editor.asset.php | 2 +- .../wpcom-blocks-timeline-editor.js | 2 +- vendor/composer/installed.json | 52 ++++++++--------- vendor/composer/installed.php | 52 ++++++++--------- 17 files changed, 94 insertions(+), 94 deletions(-) diff --git a/composer.lock b/composer.lock index 06c80619..f9258298 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": "4358bad8ac61fa5bf69d7f259668d467", + "content-hash": "a387e06ef6d8aef7fbed751537736d17", "packages": [ { "name": "automattic/jetpack-a8c-mc-stats", @@ -12,7 +12,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats", - "reference": "4ed06b47d0314f9e30294b3b596837bd8bcd187c" + "reference": "c7ef5de7e57767a6743b45bd772205271ffe6fb5" }, "require": { "php": ">=7.2" @@ -65,7 +65,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui", - "reference": "e0580636171406432a68f800cd3cd1ff01a61647" + "reference": "47aff8879444563c215f7428ec1fbc300f27107b" }, "require": { "php": ">=7.2" @@ -130,7 +130,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "6bb8d366387592945a3f93da50f36054b7a1d7df" + "reference": "b20eed6de7186e1d0c364ac383e879a8f2e8c89c" }, "require": { "automattic/jetpack-constants": "^3.0.1", @@ -199,7 +199,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-blaze", - "reference": "c455392e152c333de1ca10f917344c64282868f5" + "reference": "3fc6cae2629bcd39d3a09cc4df6ca72fc33d3fed" }, "require": { "automattic/jetpack-assets": "^4.0.1", @@ -280,7 +280,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-blocks", - "reference": "87f2e062bcbc8ecfc2d7eece4a6f585fd14c4e5c" + "reference": "e2168d77f14955d6380eb2d405d2f89ed9d7561f" }, "require": { "automattic/jetpack-constants": "^3.0.1", @@ -342,7 +342,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-calypsoify", - "reference": "448057d2fd88e74b599cb98aed0a932bca721387" + "reference": "a226238614f4932856f438d12f32418372694dff" }, "require": { "automattic/jetpack-assets": "^4.0.1", @@ -407,7 +407,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-classic-theme-helper", - "reference": "9223e26242d03f3e5fb5f98ca07423572b963bc7" + "reference": "9828afab4e7dd8c50f903ff727314bb87b9cc283" }, "require": { "automattic/jetpack-assets": "^4.0.1", @@ -478,7 +478,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-compat", - "reference": "113c80498028a8e9631c174d7ee784cdf49aebb1" + "reference": "4ece272494221bb795e07f770393c3b7c1a0574e" }, "require": { "php": ">=7.2" @@ -515,7 +515,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-connection", - "reference": "ab6c65d9c6b86a1b6ff9b35f78d8f4db07c0a77b" + "reference": "9c377cc043273668e986fc96943a8cf104b1dd15" }, "require": { "automattic/jetpack-a8c-mc-stats": "^3.0.0", @@ -605,7 +605,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "2bf995864fc06e876195b943e10a682714c21d56" + "reference": "7e7653ecc10ffdc84b85e8885ca9e5a1558d056f" }, "require": { "php": ">=7.2" @@ -659,7 +659,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-device-detection", - "reference": "ec1469562d4103ba14cbe3deb80bb8de716fef06" + "reference": "d11dce263b643ab3d8a4635dc02400394701c37c" }, "require": { "php": ">=7.2" @@ -712,7 +712,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-google-analytics", - "reference": "779b8765e137221f2432df7c8e0b3a54b972ce1c" + "reference": "1c85c4bf1cf4a84bb601297a4ffec05599f89e65" }, "require": { "automattic/jetpack-status": "^5.0.1", @@ -783,7 +783,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-ip", - "reference": "adfb169c12aa74a7fda0dc5590dfa34d8c994ae4" + "reference": "d8d687de3f9bca555d51fec6031eca12c8fe6fed" }, "require": { "php": ">=7.2" @@ -841,7 +841,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-jitm", - "reference": "526bdd288c0fb1c673177b8893d02fc200f1bdaf" + "reference": "e1ba9fc6656267a2a6cb3da2a5ea74c0fec5f0d4" }, "require": { "automattic/jetpack-a8c-mc-stats": "^3.0.0", @@ -916,7 +916,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-logo", - "reference": "99280f5b26bdc217bf5873fb8d0aad98fc45dd4e" + "reference": "d90999f26d3460fb5a9c52a2c1a69b3d5225462a" }, "require": { "php": ">=7.2" @@ -969,7 +969,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-masterbar", - "reference": "aa249e6a907eabc6de6e48484701cd6bfd4b72e5" + "reference": "bef081eb074e00626727a54e7d28f01ab0922a10" }, "require": { "automattic/jetpack-assets": "^4.0.1", @@ -1052,7 +1052,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-mu-wpcom", - "reference": "56292d589b050112cab8317a81c6dcd60745a0d9" + "reference": "69ecde18f80885d9aa72ce129f8b0bcb811a312d" }, "require": { "automattic/jetpack-assets": "^4.0.1", @@ -1135,7 +1135,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-password-checker", - "reference": "dbc80ccbda4ce4ff2183d267bfed045d84fd02ef" + "reference": "6d5cd5c81501ebf83c7148ab39b05c03c13ace3d" }, "require": { "php": ">=7.2" @@ -1196,7 +1196,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plans", - "reference": "711a795912bd1b40cc342f8d28ac66b4059d36e4" + "reference": "7302b9e934bb43b253765b07b120f217b7ff2536" }, "require": { "automattic/jetpack-connection": "^6.2.0-alpha", @@ -1264,7 +1264,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-redirect", - "reference": "fd315eb97ccdf00f18625a58bc0459cd148952b1" + "reference": "d1a13fb7fec1d557628dc364ef61dab8da600dc5" }, "require": { "automattic/jetpack-status": "^5.0.1", @@ -1319,7 +1319,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-roles", - "reference": "56931908216cc2d8141bf3e8781c8b12a5aa5a4d" + "reference": "0e1d336d1151f014f1d40d2f5cf717e91d4937e0" }, "require": { "php": ">=7.2" @@ -1373,7 +1373,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-stats", - "reference": "aded3e06b79e3691315393408c3e988ee8fec9d9" + "reference": "d3b386ad003b0df8bf60190529aab2ce25d3fb4d" }, "require": { "automattic/jetpack-connection": "^6.2.0-alpha", @@ -1440,7 +1440,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-stats-admin", - "reference": "e1cbf2b9afdedc196589884893c7820aa73eceee" + "reference": "2a6a5a77fbee9d721812ae73236305f1455c4d39" }, "require": { "automattic/jetpack-connection": "^6.2.0-alpha", @@ -1513,7 +1513,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-status", - "reference": "711ae1222f1426aa50c8397a1d1da2bc717b44f6" + "reference": "c127aeb6e5afd1fe69d504bef9af0c65f2c4d987" }, "require": { "automattic/jetpack-constants": "^3.0.1", @@ -1577,7 +1577,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-sync", - "reference": "942a9d98c8363902f191c768e61bad59048dcdd9" + "reference": "035a51b012c72d99c62ba6bd0338512fa0fd0040" }, "require": { "automattic/jetpack-connection": "^6.2.0-alpha", @@ -1655,7 +1655,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/scheduled-updates", - "reference": "b1421d305dc13565018244df8822a3f0b9982775" + "reference": "71e57707bc533da087b8fbaddf5917392e1b4089" }, "require": { "automattic/jetpack-connection": "^6.2.0-alpha", @@ -1807,7 +1807,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-changelogger", - "reference": "abf401f076f2a47349efe98a540a7c9911c5c780" + "reference": "1a088224b3ea0bf20d2606734c864c60cdad8029" }, "require": { "php": ">=7.2.5", diff --git a/vendor/automattic/jetpack-blaze/build/editor.asset.php b/vendor/automattic/jetpack-blaze/build/editor.asset.php index fd31a20e..db7fe7af 100644 --- a/vendor/automattic/jetpack-blaze/build/editor.asset.php +++ b/vendor/automattic/jetpack-blaze/build/editor.asset.php @@ -1 +1 @@ - array('jetpack-connection', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '95aae94b05259cd479f8'); + array('jetpack-connection', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '450a22c4b103e9b8ab7c'); diff --git a/vendor/automattic/jetpack-blaze/build/editor.js b/vendor/automattic/jetpack-blaze/build/editor.js index 221e481c..f0d0a28a 100644 --- a/vendor/automattic/jetpack-blaze/build/editor.js +++ b/vendor/automattic/jetpack-blaze/build/editor.js @@ -1 +1 @@ -(()=>{var e={113:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(468);const o=(0,s.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,s.cloneElement)(e,{width:t,height:t,...n,ref:o})}))},512:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(573),o=n(790);const r=(0,o.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(s.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},941:(e,t,n)=>{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 n="color: "+this.color;t.splice(1,0,n,"color: inherit");let s=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(o=s))})),t.splice(o,0,n)},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=n(212)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},212:(e,t,n)=>{e.exports=function(e){function t(e){let n,o,r,i=null;function a(...e){if(!a.enabled)return;const s=a,o=Number(new Date),r=o-(n||o);s.diff=r,s.prev=n,s.curr=o,n=o,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,((n,o)=>{if("%%"===n)return"%";i++;const r=t.formatters[o];if("function"==typeof r){const t=e[i];n=r.call(s,t),e.splice(i,1),i--}return n})),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=s,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(o!==t.namespaces&&(o=t.namespaces,r=t.enabled(e)),r),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function s(e,n){const s=t(this.namespace+(void 0===n?":":n)+e);return s.log=this.log,s}function o(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(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),o=s.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,s=60*n,o=24*s,r=7*o,i=365.25*o;function a(e,t,n,s){var o=t>=1.5*n;return Math.round(e/n)+" "+s+(o?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&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*r;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*s;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;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"===u&&isFinite(e))return c.long?function(e){var r=Math.abs(e);if(r>=o)return a(e,r,o,"day");if(r>=s)return a(e,r,s,"hour");if(r>=n)return a(e,r,n,"minute");if(r>=t)return a(e,r,t,"second");return e+" ms"}(e):function(e){var r=Math.abs(e);if(r>=o)return Math.round(e/o)+"d";if(r>=s)return Math.round(e/s)+"h";if(r>=n)return Math.round(e/n)+"m";if(r>=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))}},372:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=n(941);const o=n.n(s)()("dops:analytics");let r,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,n){a.setUser(e,t),a.setSuperProps(n),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){r=e},assignSuperProps:function(e){r=Object.assign(r||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Built stat "%s" in group "%s"',t,e);return n}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){a.tracks.recordPageView(e),a.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,s,o,r,i){a.ga.recordPurchase(e,t,n,s,o,r,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(r&&(o("- Super Props: %o",r),t=Object.assign(t,r)),o('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):o('- 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){o("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(),o("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,n,s){a.ga.initialize();let r="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(r+=" [Option Label: "+n+"]"),void 0!==s&&(r+=" [Option Value: "+s+"]"),o(r),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,s)},recordPurchase:function(e,t,n,s,o,r,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:s,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:o,quantity:r}),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},985:(e,t,n)=>{"use strict";n.d(t,{st:()=>s.A});n(34),n(595),n(265);var s=n(489);n(923),n(877),n(335),n(290)},877:(e,t,n)=>{"use strict";n(609)},335:(e,t,n)=>{"use strict";n(468)},489:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=n(372),o=n(384),r=n(468);const{tracks:i}=s.A,{recordEvent:a}=i,c=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:n="page_view",pageViewEventProperties:c={}}={})=>{const[u,l]=(0,r.useState)(!1),{isUserConnected:d,isRegistered:p,userConnectionData:g={}}=(0,o.useConnection)(),{wpcomUser:{login:w,ID:f}={},blogId:C}=g.currentUser||{},m=(0,r.useCallback)((async(e,t={})=>{d&&f&&w&&a(e,t)}),[d,f,w]);return(0,r.useEffect)((()=>{d&&f&&w&&C&&s.A.initialize(f,w,{blog_id:C})}),[C,f,w,d]),(0,r.useEffect)((()=>{const s=e?`${t}_${e}_${n}`:null;p&&s&&(u||(m(s,c),l(!0)))}),[u,t,e,n,p,c,m]),{recordEvent:m,tracks:i}}},923:(e,t,n)=>{"use strict";n(143),n(468),n(290)},105:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,E9:()=>l});var s=n(143),o=n(634),r=n(478),i=n(290);const a="SET_JETPACK_MODULES";function c(e){return l({isLoading:e})}function u(e,t){return{type:"SET_MODULE_UPDATING",name:e,isUpdating:t}}function l(e){return{type:a,options:e}}const d={updateJetpackModuleStatus:function*(e){try{yield u(e.name,!0),yield(0,r.sB)(e);const t=yield(0,r.wz)();return yield l({data:t}),!0}catch(e){const t=(0,s.select)(i.F).getJetpackModules();return yield l(t),!1}finally{yield u(e.name,!1)}},setJetpackModules:l,fetchModules:function*(){if((0,o.Sy)())return!0;try{yield c(!0);const e=yield(0,r.wz)();return yield l({data:e}),!0}catch(e){const t=(0,s.select)(i.F).getJetpackModules();return yield l(t),!1}finally{yield c(!1)}}}},478:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,sB:()=>c,wz:()=>a});var s=n(455),o=n.n(s);const r="FETCH_JETPACK_MODULES",i="UPDATE_JETPACK_MODULE_STATUS",a=()=>({type:r}),c=e=>({type:i,settings:e}),u={[r]:function(){return o()({path:"/jetpack/v4/module/all",method:"GET"})},[i]:function({settings:e}){return o()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},290:(e,t,n)=>{"use strict";n.d(t,{F:()=>u});var s=n(143),o=n(105),r=n(478),i=n(862),a=n(701),c=n(640);const u="jetpack-modules",l=(0,s.createReduxStore)(u,{reducer:i.A,actions:o.Ay,controls:r.Ay,resolvers:a.A,selectors:c.A});(0,s.register)(l);const d=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==d&&(0,s.dispatch)(u).setJetpackModules({data:{...d}})},862:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const s={isLoading:!1,isUpdating:{},data:{}},o=(e=s,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}},701:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(105),o=n(478);const r={getJetpackModules:function*(){try{const e=yield(0,o.wz)();if(e)return(0,s.E9)({data:e})}catch(e){console.error(e)}}}},640:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(634);const o={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,s.Sy)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},265:(e,t,n)=>{"use strict";var s=n(723);n(832),n(87);const __=s.__;__("Upgrade your plan to use video covers","jetpack-blaze"),__("Upgrade your plan to upload audio","jetpack-blaze")},34:(e,t,n)=>{"use strict";n(279)},634:(e,t,n)=>{"use strict";function s(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function o(){return"simple"===s()}n.d(t,{Sy:()=>o})},595:(e,t,n)=>{"use strict";n(72),n(491)},368:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(427);function o(){return React.createElement(s.SVG,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement(s.G,{clipPath:"url(#clip0_4728_49296)"},React.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#D9D9D9"}),React.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"black"}),React.createElement(s.Path,{d:"M14.8665 6.68544C14.7139 6.50468 14.4652 6.43826 14.2436 6.52015C14.0224 6.60204 13.875 6.81412 13.875 7.05149V8.71684C13.875 9.02893 13.6226 9.2829 13.3125 9.2829C13.0024 9.2829 12.75 9.02893 12.75 8.71684V4.72989C12.75 4.56762 12.681 4.41365 12.5602 4.3061C12.4354 4.19515 12.3622 4.13288 12.3622 4.13288C12.1537 3.95627 11.8485 3.95552 11.6389 4.13175C11.4086 4.32572 6 8.9327 6 13.434C6 16.7632 8.69175 19.472 12 19.472C15.3082 19.472 18 16.7632 18 13.434C18 10.9267 16.296 8.38022 14.8665 6.68544ZM12.0728 18.5274C11.508 18.544 10.9699 18.3259 10.5259 17.9742C8.3535 16.2537 10.3856 13.4982 11.4469 12.3106C11.7435 11.9789 12.2584 11.9807 12.555 12.3125C13.2742 13.1178 14.4375 14.6416 14.4375 16.0756C14.4375 17.4059 13.3853 18.4885 12.0728 18.5274Z",fill:"white"})))}},384:e=>{"use strict";e.exports=window.JetpackConnection},609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},87:e=>{"use strict";e.exports=window.lodash},455:e=>{"use strict";e.exports=window.wp.apiFetch},427:e=>{"use strict";e.exports=window.wp.components},491:e=>{"use strict";e.exports=window.wp.compose},143:e=>{"use strict";e.exports=window.wp.data},309:e=>{"use strict";e.exports=window.wp.editPost},656:e=>{"use strict";e.exports=window.wp.editor},468:e=>{"use strict";e.exports=window.wp.element},723:e=>{"use strict";e.exports=window.wp.i18n},279:e=>{"use strict";e.exports=window.wp.plugins},573:e=>{"use strict";e.exports=window.wp.primitives},832:e=>{"use strict";e.exports=window.wp.url},72:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(985),t=n(427),s=n(491),o=n(143),r=n(309),i=n(656),a=n(468),c=n(723),u=n(113),l=n(512),d=n(279),p=n(368);const __=c.__,g=()=>{const{blazeUrlTemplate:n}=window?.blazeInitialState||{},{tracks:c}=(0,e.st)(),d=(0,a.useCallback)((()=>c.recordEvent("jetpack_editor_blaze_publish_click")),[c]),{isPostPublished:g,isPublishingPost:w,postId:f,postType:C,postVisibility:m}=(0,o.useSelect)((e=>({isPostPublished:e(i.store).isCurrentPostPublished(),isPublishingPost:e(i.store).isPublishingPost(),postId:e(i.store).getCurrentPostId(),postType:e(i.store).getCurrentPostType(),postVisibility:e(i.store).getEditedPostVisibility()}))),h=(0,s.usePrevious)(w),y={name:"blaze-panel",title:__("Promote with Blaze","jetpack-blaze"),className:"blaze-panel",icon:React.createElement(p.A,null),initialOpen:!0},v=n.link.replace("__POST_ID__",f),b=(0,a.useCallback)((()=>!!["page","post","product"].includes(C)&&!(!g||"password"===m||"private"===m)),[C,g,m]);if((0,a.useEffect)((()=>{h&&!w&&b()&&g&&c.recordEvent("jetpack_editor_blaze_post_publish_panel_view")}),[c,w,g,h,b]),!b())return null;const F={page:__("Blaze this page","jetpack-blaze"),post:__("Blaze this post","jetpack-blaze"),product:__("Blaze this product","jetpack-blaze")}[C]??__("Blaze this post","jetpack-blaze");return React.createElement(r.PluginPostPublishPanel,y,React.createElement(t.PanelRow,null,React.createElement("p",null,__("Reach a larger audience boosting the content to the WordPress.com community of blogs and sites.","jetpack-blaze"))),React.createElement("div",{role:"link",className:"post-publish-panel__postpublish-buttons",tabIndex:0,onClick:d,onKeyDown:d},React.createElement(t.Button,{variant:"secondary",href:v,target:"_top"},F,n.external&&React.createElement(u.A,{icon:l.A,className:"blaze-panel-outbound-link__external_icon"}))))};(0,d.getPlugin)("jetpack-blaze")||(0,d.registerPlugin)("jetpack-blaze",{render:g})})()})(); \ No newline at end of file +(()=>{var e={113:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(468);const o=(0,s.forwardRef)((function({icon:e,size:t=24,...n},o){return(0,s.cloneElement)(e,{width:t,height:t,...n,ref:o})}))},512:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(573),o=n(790);const r=(0,o.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(s.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},941:(e,t,n)=>{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 n="color: "+this.color;t.splice(1,0,n,"color: inherit");let s=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(o=s))})),t.splice(o,0,n)},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=n(212)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},212:(e,t,n)=>{e.exports=function(e){function t(e){let n,o,r,i=null;function a(...e){if(!a.enabled)return;const s=a,o=Number(new Date),r=o-(n||o);s.diff=r,s.prev=n,s.curr=o,n=o,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,((n,o)=>{if("%%"===n)return"%";i++;const r=t.formatters[o];if("function"==typeof r){const t=e[i];n=r.call(s,t),e.splice(i,1),i--}return n})),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=s,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(o!==t.namespaces&&(o=t.namespaces,r=t.enabled(e)),r),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function s(e,n){const s=t(this.namespace+(void 0===n?":":n)+e);return s.log=this.log,s}function o(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(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),o=s.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,s=60*n,o=24*s,r=7*o,i=365.25*o;function a(e,t,n,s){var o=t>=1.5*n;return Math.round(e/n)+" "+s+(o?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&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*r;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*s;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;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"===u&&isFinite(e))return c.long?function(e){var r=Math.abs(e);if(r>=o)return a(e,r,o,"day");if(r>=s)return a(e,r,s,"hour");if(r>=n)return a(e,r,n,"minute");if(r>=t)return a(e,r,t,"second");return e+" ms"}(e):function(e){var r=Math.abs(e);if(r>=o)return Math.round(e/o)+"d";if(r>=s)return Math.round(e/s)+"h";if(r>=n)return Math.round(e/n)+"m";if(r>=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))}},372:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=n(941);const o=n.n(s)()("dops:analytics");let r,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,n){a.setUser(e,t),a.setSuperProps(n),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){r=e},assignSuperProps:function(e){r=Object.assign(r||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Built stat "%s" in group "%s"',t,e);return n}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){a.tracks.recordPageView(e),a.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,s,o,r,i){a.ga.recordPurchase(e,t,n,s,o,r,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(r&&(o("- Super Props: %o",r),t=Object.assign(t,r)),o('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):o('- 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){o("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(),o("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,n,s){a.ga.initialize();let r="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(r+=" [Option Label: "+n+"]"),void 0!==s&&(r+=" [Option Value: "+s+"]"),o(r),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,s)},recordPurchase:function(e,t,n,s,o,r,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:s,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:o,quantity:r}),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},985:(e,t,n)=>{"use strict";n.d(t,{st:()=>s.A});n(34),n(595),n(265);var s=n(489);n(923),n(877),n(335),n(290)},877:(e,t,n)=>{"use strict";n(609)},335:(e,t,n)=>{"use strict";n(468)},489:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=n(372),o=n(384),r=n(468);const{tracks:i}=s.A,{recordEvent:a}=i,c=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:n="page_view",pageViewEventProperties:c={}}={})=>{const[u,l]=(0,r.useState)(!1),{isUserConnected:d,isRegistered:p,userConnectionData:g={}}=(0,o.useConnection)(),{wpcomUser:{login:w,ID:f}={},blogId:C}=g.currentUser||{},m=(0,r.useCallback)((async(e,t={})=>{d&&f&&w&&a(e,t)}),[d,f,w]);return(0,r.useEffect)((()=>{d&&f&&w&&C&&s.A.initialize(f,w,{blog_id:C})}),[C,f,w,d]),(0,r.useEffect)((()=>{const s=e?`${t}_${e}_${n}`:null;p&&s&&(u||(m(s,c),l(!0)))}),[u,t,e,n,p,c,m]),{recordEvent:m,tracks:i}}},923:(e,t,n)=>{"use strict";n(143),n(468),n(290)},105:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d,E9:()=>l});var s=n(143),o=n(634),r=n(478),i=n(290);const a="SET_JETPACK_MODULES";function c(e){return l({isLoading:e})}function u(e,t){return{type:"SET_MODULE_UPDATING",name:e,isUpdating:t}}function l(e){return{type:a,options:e}}const d={updateJetpackModuleStatus:function*(e){try{yield u(e.name,!0),yield(0,r.sB)(e);const t=yield(0,r.wz)();return yield l({data:t}),!0}catch{const e=(0,s.select)(i.F).getJetpackModules();return yield l(e),!1}finally{yield u(e.name,!1)}},setJetpackModules:l,fetchModules:function*(){if((0,o.Sy)())return!0;try{yield c(!0);const e=yield(0,r.wz)();return yield l({data:e}),!0}catch{const e=(0,s.select)(i.F).getJetpackModules();return yield l(e),!1}finally{yield c(!1)}}}},478:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,sB:()=>c,wz:()=>a});var s=n(455),o=n.n(s);const r="FETCH_JETPACK_MODULES",i="UPDATE_JETPACK_MODULE_STATUS",a=()=>({type:r}),c=e=>({type:i,settings:e}),u={[r]:function(){return o()({path:"/jetpack/v4/module/all",method:"GET"})},[i]:function({settings:e}){return o()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},290:(e,t,n)=>{"use strict";n.d(t,{F:()=>u});var s=n(143),o=n(105),r=n(478),i=n(862),a=n(701),c=n(640);const u="jetpack-modules",l=(0,s.createReduxStore)(u,{reducer:i.A,actions:o.Ay,controls:r.Ay,resolvers:a.A,selectors:c.A});(0,s.register)(l);const d=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==d&&(0,s.dispatch)(u).setJetpackModules({data:{...d}})},862:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const s={isLoading:!1,isUpdating:{},data:{}},o=(e=s,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}},701:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(105),o=n(478);const r={getJetpackModules:function*(){try{const e=yield(0,o.wz)();if(e)return(0,s.E9)({data:e})}catch(e){console.error(e)}}}},640:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(634);const o={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,s.Sy)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},265:(e,t,n)=>{"use strict";var s=n(723);n(832),n(87);const __=s.__;__("Upgrade your plan to use video covers","jetpack-blaze"),__("Upgrade your plan to upload audio","jetpack-blaze")},34:(e,t,n)=>{"use strict";n(279)},634:(e,t,n)=>{"use strict";function s(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function o(){return"simple"===s()}n.d(t,{Sy:()=>o})},595:(e,t,n)=>{"use strict";n(72),n(491)},368:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(427);function o(){return React.createElement(s.SVG,{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement(s.G,{clipPath:"url(#clip0_4728_49296)"},React.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#D9D9D9"}),React.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"black"}),React.createElement(s.Path,{d:"M14.8665 6.68544C14.7139 6.50468 14.4652 6.43826 14.2436 6.52015C14.0224 6.60204 13.875 6.81412 13.875 7.05149V8.71684C13.875 9.02893 13.6226 9.2829 13.3125 9.2829C13.0024 9.2829 12.75 9.02893 12.75 8.71684V4.72989C12.75 4.56762 12.681 4.41365 12.5602 4.3061C12.4354 4.19515 12.3622 4.13288 12.3622 4.13288C12.1537 3.95627 11.8485 3.95552 11.6389 4.13175C11.4086 4.32572 6 8.9327 6 13.434C6 16.7632 8.69175 19.472 12 19.472C15.3082 19.472 18 16.7632 18 13.434C18 10.9267 16.296 8.38022 14.8665 6.68544ZM12.0728 18.5274C11.508 18.544 10.9699 18.3259 10.5259 17.9742C8.3535 16.2537 10.3856 13.4982 11.4469 12.3106C11.7435 11.9789 12.2584 11.9807 12.555 12.3125C13.2742 13.1178 14.4375 14.6416 14.4375 16.0756C14.4375 17.4059 13.3853 18.4885 12.0728 18.5274Z",fill:"white"})))}},384:e=>{"use strict";e.exports=window.JetpackConnection},609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},87:e=>{"use strict";e.exports=window.lodash},455:e=>{"use strict";e.exports=window.wp.apiFetch},427:e=>{"use strict";e.exports=window.wp.components},491:e=>{"use strict";e.exports=window.wp.compose},143:e=>{"use strict";e.exports=window.wp.data},309:e=>{"use strict";e.exports=window.wp.editPost},656:e=>{"use strict";e.exports=window.wp.editor},468:e=>{"use strict";e.exports=window.wp.element},723:e=>{"use strict";e.exports=window.wp.i18n},279:e=>{"use strict";e.exports=window.wp.plugins},573:e=>{"use strict";e.exports=window.wp.primitives},832:e=>{"use strict";e.exports=window.wp.url},72:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(985),t=n(427),s=n(491),o=n(143),r=n(309),i=n(656),a=n(468),c=n(723),u=n(113),l=n(512),d=n(279),p=n(368);const __=c.__,g=()=>{const{blazeUrlTemplate:n}=window?.blazeInitialState||{},{tracks:c}=(0,e.st)(),d=(0,a.useCallback)((()=>c.recordEvent("jetpack_editor_blaze_publish_click")),[c]),{isPostPublished:g,isPublishingPost:w,postId:f,postType:C,postVisibility:m}=(0,o.useSelect)((e=>({isPostPublished:e(i.store).isCurrentPostPublished(),isPublishingPost:e(i.store).isPublishingPost(),postId:e(i.store).getCurrentPostId(),postType:e(i.store).getCurrentPostType(),postVisibility:e(i.store).getEditedPostVisibility()}))),h=(0,s.usePrevious)(w),y={name:"blaze-panel",title:__("Promote with Blaze","jetpack-blaze"),className:"blaze-panel",icon:React.createElement(p.A,null),initialOpen:!0},v=n.link.replace("__POST_ID__",f),b=(0,a.useCallback)((()=>!!["page","post","product"].includes(C)&&!(!g||"password"===m||"private"===m)),[C,g,m]);if((0,a.useEffect)((()=>{h&&!w&&b()&&g&&c.recordEvent("jetpack_editor_blaze_post_publish_panel_view")}),[c,w,g,h,b]),!b())return null;const F={page:__("Blaze this page","jetpack-blaze"),post:__("Blaze this post","jetpack-blaze"),product:__("Blaze this product","jetpack-blaze")}[C]??__("Blaze this post","jetpack-blaze");return React.createElement(r.PluginPostPublishPanel,y,React.createElement(t.PanelRow,null,React.createElement("p",null,__("Reach a larger audience boosting the content to the WordPress.com community of blogs and sites.","jetpack-blaze"))),React.createElement("div",{role:"link",className:"post-publish-panel__postpublish-buttons",tabIndex:0,onClick:d,onKeyDown:d},React.createElement(t.Button,{variant:"secondary",href:v,target:"_top"},F,n.external&&React.createElement(u.A,{icon:l.A,className:"blaze-panel-outbound-link__external_icon"}))))};(0,d.getPlugin)("jetpack-blaze")||(0,d.registerPlugin)("jetpack-blaze",{render:g})})()})(); \ No newline at end of file diff --git a/vendor/automattic/jetpack-connection/dist/jetpack-connection.asset.php b/vendor/automattic/jetpack-connection/dist/jetpack-connection.asset.php index a518aef0..2c6cf008 100644 --- a/vendor/automattic/jetpack-connection/dist/jetpack-connection.asset.php +++ b/vendor/automattic/jetpack-connection/dist/jetpack-connection.asset.php @@ -1 +1 @@ - array('jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'eb297001421eed2aa7ff'); + array('jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'bc8ee5ac3a110a6aed54'); diff --git a/vendor/automattic/jetpack-connection/dist/jetpack-connection.js b/vendor/automattic/jetpack-connection/dist/jetpack-connection.js index 1264f96e..3de6698f 100644 --- a/vendor/automattic/jetpack-connection/dist/jetpack-connection.js +++ b/vendor/automattic/jetpack-connection/dist/jetpack-connection.js @@ -3,5 +3,5 @@ __("(opens in a new tab)","jetpack-connection"))),A=f?"_blank":void 0,N=t?.[0]&&null!==t[0]&&"components-tooltip"!==t?.[0]?.props?.className;return d().createElement(c.Button,i()({target:A,variant:o,className:(0,l.A)(v,{"has-text":!!m&&N}),icon:f?void 0:m,iconSize:g,disabled:h,"aria-disabled":h,isDestructive:_,text:k},E),y&&d().createElement(c.Spinner,null),d().createElement("span",null,t),w)}));m.displayName="Button";const g=m},9121:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});t(9535);const o=({format:e="horizontal",icon:n,imageUrl:t})=>React.createElement("div",{className:"jp-components__decorative-card "+(e?"jp-components__decorative-card--"+e:"")},React.createElement("div",{className:"jp-components__decorative-card__image",style:{backgroundImage:t?`url( ${t} )`:""}}),React.createElement("div",{className:"jp-components__decorative-card__content"},React.createElement("div",{className:"jp-components__decorative-card__lines"})),n?React.createElement("div",{className:"jp-components__decorative-card__icon-container"},React.createElement("span",{className:"jp-components__decorative-card__icon jp-components__decorative-card__icon--"+n})):null)},7142:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var o=t(8579),i=t.n(o),c=t(7723),r=t(2231),s=t(1609),a=t.n(s);const __=c.__,l=({logoColor:e="#069e08",showText:n=!0,className:t,height:o=32,...c})=>{const s=n?"0 0 118 32":"0 0 32 32";return a().createElement("svg",i()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:s,className:(0,r.A)("jetpack-logo",t),"aria-labelledby":"jetpack-logo-title",height:o},c,{role:"img"}),a().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack-connection")),a().createElement("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),n&&a().createElement(a().Fragment,null,a().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),a().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),a().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),a().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),a().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),a().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),a().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}},442:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var o=t(9491),i=t(8403);const c=["sm","md","lg"],r=(e,n)=>{const t=Array.isArray(e)?e:[e],r=Array.isArray(n)?n:[n],[s,a,l]=c,p={sm:(0,o.useMediaQuery)(i.A[s]),md:(0,o.useMediaQuery)(i.A[a]),lg:(0,o.useMediaQuery)(i.A[l])};return t.map(((e,n)=>{const t=r[n];return t?((e,n,t)=>{const o=c.indexOf(e),i=o+1,r=n.includes("=");let s=[];return n.startsWith("<")&&(s=c.slice(0,r?i:o)),n.startsWith(">")&&(s=c.slice(r?o:i)),s?.length?s.some((e=>t[e])):t[e]})(e,t,p):p[e]}))}},1876:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var o=t(2231),i=t(1609),c=t.n(i),r=t(6406);const s=({children:e=null,width:n=null,height:t=null,className:i=""})=>c().createElement("div",{className:(0,o.A)(r.A.placeholder,i),style:{width:n,height:t}},e)},9957:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var o=t(4761),i=t(6427),c=t(7723),r=t(1876),s=t(5879);t(4319);const __=c.__,a=e=>-1===e.fraction.indexOf("00"),l=({currencyCode:e="USD",priceDetails:n=__("/month, paid yearly","jetpack-connection"),...t})=>{const l=(0,o.vA)(t.priceBefore,e),p=(0,o.vA)(t.priceAfter,e);return React.createElement("div",{className:"jp-components__pricing-card"},t.icon&&React.createElement("div",{className:"jp-components__pricing-card__icon"},"string"==typeof t.icon?React.createElement("img",{src:t.icon,alt:(0,c.sprintf)(/* translators: placeholder is a product name */ __("Icon for the product %s","jetpack-connection"),t.title)}):t.icon),React.createElement("h1",{className:"jp-components__pricing-card__title"},t.title),React.createElement("div",{className:"jp-components__pricing-card__pricing"},0===t.priceAfter&&React.createElement(r.A,{width:"100%",height:48}),t.priceBefore!==t.priceAfter&&t.priceAfter>0&&React.createElement("div",{className:"jp-components__pricing-card__price-before"},React.createElement("span",{className:"jp-components__pricing-card__currency"},l.symbol),React.createElement("span",{className:"jp-components__pricing-card__price"},l.integer),a(l)&&React.createElement("span",{className:"jp-components__pricing-card__price-decimal"}," ",l.fraction),React.createElement("div",{className:"jp-components__pricing-card__price-strikethrough"})),t.priceAfter>0&&React.createElement(React.Fragment,null,React.createElement("div",{className:"jp-components__pricing-card__price-after"},React.createElement("span",{className:"jp-components__pricing-card__currency"},p.symbol),React.createElement("span",{className:"jp-components__pricing-card__price"},p.integer),a(p)&&React.createElement("span",{className:"jp-components__pricing-card__price-decimal"},p.fraction)),React.createElement("span",{className:"jp-components__pricing-card__price-details"},n))),t.children&&React.createElement("div",{className:"jp-components__pricing-card__extra-content-wrapper"},t.children),t.tosText&&React.createElement("div",{className:"jp-components__pricing-card__tos"},t.tosText),t.ctaText&&React.createElement(React.Fragment,null,!t.tosText&&React.createElement("div",{className:"jp-components__pricing-card__tos"},React.createElement(s.A,{agreeButtonLabel:t.ctaText})),React.createElement("div",{className:"jp-components__pricing-card__cta"},React.createElement(i.Button,{className:"jp-components__pricing-card__button",label:t.ctaText,onClick:t.onCtaClick},t.ctaText))),t.infoText&&React.createElement("div",{className:"jp-components__pricing-card__info"},t.infoText))}},6461:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(3619),i=t.n(o),c=t(1609),r=t.n(c);t(8325);const s=({color:e="#FFFFFF",className:n="",size:t=20})=>{const o=n+" jp-components-spinner",i={width:t,height:t,fontSize:t,borderTopColor:e},c={borderTopColor:e,borderRightColor:e};return r().createElement("div",{className:o},r().createElement("div",{className:"jp-components-spinner__outer",style:i},r().createElement("div",{className:"jp-components-spinner__inner",style:c})))};s.propTypes={color:i().string,className:i().string,size:i().number};const a=s},5879:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(8579),i=t.n(o),c=t(6087),r=t(7723),s=t(2231),a=t(3924),l=t(7425);t(9634);const __=r.__,p=({multipleButtonsLabels:e})=>Array.isArray(e)&&e.length>1?(0,c.createInterpolateElement)((0,r.sprintf)(/* translators: %1$s is button label 1 and %2$s is button label 2 */ __("By clicking %1$s or %2$s, you agree to our Terms of Service and to sync your site‘s data with us.","jetpack-connection"),e[0],e[1]),{strong:React.createElement("strong",null),tosLink:React.createElement(u,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(u,{slug:"jetpack-support-what-data-does-jetpack-sync"})}):(0,c.createInterpolateElement)(__("By clicking the buttons above, you agree to our Terms of Service and to sync your site‘s data with us.","jetpack-connection"),{tosLink:React.createElement(u,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(u,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),d=({agreeButtonLabel:e})=>(0,c.createInterpolateElement)((0,r.sprintf)(/* translators: %s is a button label */ -__("By clicking %s, you agree to our Terms of Service and to sync your site‘s data with us.","jetpack-connection"),e),{strong:React.createElement("strong",null),tosLink:React.createElement(u,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(u,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),u=({slug:e,children:n})=>React.createElement("a",{className:"terms-of-service__link",href:(0,a.A)(e),rel:"noopener noreferrer",target:"_blank"},n),m=({className:e,multipleButtons:n,agreeButtonLabel:t,...o})=>React.createElement(l.Ay,i()({className:(0,s.A)(e,"terms-of-service")},o),n?React.createElement(p,{multipleButtonsLabels:n}):React.createElement(d,{agreeButtonLabel:t}))},110:(e,n,t)=>{"use strict";t.d(n,{Q:()=>o,Z:()=>i});const o={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-medium-semi-bold":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p","body-extra-small-bold":"p",label:"p"},i=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},7425:(e,n,t)=>{"use strict";t.d(n,{Ay:()=>d});var o=t(8579),i=t.n(o),c=t(2231),r=t(1609),s=t.n(r),a=t(110),l=t(4495);const p=(0,r.forwardRef)((({variant:e="body",children:n,component:t,className:o,...p},d)=>{const u=t||a.Q[e]||"span",m=(0,r.useMemo)((()=>a.Z.reduce(((e,n)=>(void 0!==p[n]&&(e+=l.A[`${n}-${p[n]}`]+" ",delete p[n]),e)),"")),[p]);return s().createElement(u,i()({className:(0,c.A)(l.A.reset,l.A[e],o,m)},p,{ref:d}),n)}));p.displayName="Text";const d=p},3924:(e,n,t)=>{"use strict";function o(e,n={}){const t={};let o;if("undefined"!=typeof window&&(o=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const n=new URL(e);e=`https://${n.host}${n.pathname}`,t.url=encodeURIComponent(e)}else t.source=encodeURIComponent(e);for(const e in n)t[e]=encodeURIComponent(n[e]);!Object.keys(t).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(t.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),o&&(t.calypso_env=o);return"https://jetpack.com/redirect/?"+Object.keys(t).map((e=>e+"="+t[e])).join("&")}t.d(n,{A:()=>o})},6439:(e,n,t)=>{let o={};try{o=t(9074)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),o={missingConfig:!0}}const i=e=>Object.hasOwn(o,e);e.exports={jetpackConfigHas:i,jetpackConfigGet:e=>{if(!i(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return o[e]}}},8421:(e,n,t)=>{"use strict";t.d(n,{A:()=>d});var o=t(8089),i=t(7723),c=t(3619),r=t.n(c),s=t(1609),a=t.n(s),l=t(9660);const __=i.__,p=e=>{const{apiRoot:n,apiNonce:t,connectLabel:i=__("Connect","jetpack-connection"),registrationNonce:c,redirectUri:r=null,from:s,autoTrigger:p=!1}=e,{handleRegisterSite:d,isRegistered:u,isUserConnected:m,siteIsRegistering:g,userIsConnecting:h,registrationError:_}=(0,l.A)({registrationNonce:c,redirectUri:r,apiRoot:n,apiNonce:t,autoTrigger:p,from:s});return a().createElement(a().Fragment,null,(!u||!m)&&a().createElement(o.A,{label:i,onClick:d,displayError:!!_,isLoading:g||h}))};p.propTypes={connectLabel:r().string,apiRoot:r().string.isRequired,apiNonce:r().string.isRequired,from:r().string,redirectUri:r().string.isRequired,registrationNonce:r().string.isRequired,autoTrigger:r().bool};const d=p},6212:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(7723),i=t(1609),c=t.n(i),r=t(9660),s=t(5582);const __=o.__,a=({title:e,buttonLabel:n,loadingLabel:t,apiRoot:o,apiNonce:i,registrationNonce:a,from:l,redirectUri:p,images:d,children:u,assetBaseUrl:m,autoTrigger:g,footer:h,skipUserConnection:_,skipPricingPage:y,logo:f})=>{const{handleRegisterSite:b,siteIsRegistering:k,userIsConnecting:C,registrationError:E,isOfflineMode:v}=(0,r.A)({registrationNonce:a,redirectUri:p,apiRoot:o,apiNonce:i,autoTrigger:g,from:l,skipUserConnection:_,skipPricingPage:y}),j=Boolean(E),w=k||C,A=E?.response?.code;return c().createElement(s.A,{title:e||__("Over 5 million WordPress sites are faster and more secure","jetpack-connection"),images:d||[],assetBaseUrl:m,buttonLabel:n||__("Set up Jetpack","jetpack-connection"),loadingLabel:t,handleButtonClick:b,displayButtonError:j,errorCode:A,buttonIsLoading:w,footer:h,isOfflineMode:v,logo:f},u)}},5582:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var o=t(5879),i=t(8089),c=t(3924),r=t(6087),s=t(7723),a=t(1609),l=t.n(a),p=t(2668);t(1772);const __=s.__,d=(e,n)=>{switch(e){case"fail_domain_forbidden":case"fail_ip_forbidden":case"fail_domain_tld":case"fail_subdomain_wpcom":case"siteurl_private_ip":return __("Your site host is on a private network. Jetpack can only connect to public sites.","jetpack-connection");case"connection_disabled":return __("This site has been suspended.","jetpack-connection")}if(n)return(0,r.createInterpolateElement)(__("Unavailable in Offline Mode","jetpack-connection"),{a:l().createElement("a",{href:(0,c.A)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"})})},u=({title:e,images:n,children:t,assetBaseUrl:c,isLoading:r,buttonLabel:s,handleButtonClick:a,displayButtonError:u,errorCode:m,buttonIsLoading:g,loadingLabel:h,footer:_,isOfflineMode:y,logo:f})=>l().createElement(p.A,{title:e,assetBaseUrl:c,images:n,className:"jp-connection__connect-screen"+(r?" jp-connection__connect-screen__loading":""),logo:f},l().createElement("div",{className:"jp-connection__connect-screen__content"},t,l().createElement("div",{className:"jp-connection__connect-screen__tos"},l().createElement(o.A,{agreeButtonLabel:s})),l().createElement(i.A,{label:s,onClick:a,displayError:u||y,errorMessage:d(m,y),isLoading:g,isDisabled:y}),l().createElement("span",{className:"jp-connection__connect-screen__loading-message",role:"status"},g?h||__("Loading","jetpack-connection"):""),_&&l().createElement("div",{className:"jp-connection__connect-screen__footer"},_)))},5745:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(1609),i=t.n(o);const c=({images:e,assetBaseUrl:n=""})=>{if(!e?.length)return null;const t=e.map(((e,t)=>i().createElement(i().Fragment,{key:t},i().createElement("img",{src:n+e,alt:""}))));return i().createElement("div",{className:"jp-connection__connect-screen__image-slider"},t)}},2668:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(7142),i=t(2231),c=t(1609),r=t.n(c),s=t(5745);t(9064);const a=({title:e,children:n,className:t,assetBaseUrl:c,images:a,logo:l,rna:p=!1})=>{const d=a?.length;return r().createElement("div",{className:(0,i.A)("jp-connection__connect-screen-layout",d?"jp-connection__connect-screen-layout__two-columns":"",t?" "+t:"")},p&&r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs"},r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__green"}),r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__yellow"}),r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__blue"})),r().createElement("div",{className:"jp-connection__connect-screen-layout__left"},l||r().createElement(o.A,null),r().createElement("h2",null,e),n),d?r().createElement("div",{className:"jp-connection__connect-screen-layout__right"},r().createElement(s.A,{images:a,assetBaseUrl:c})):null)}},7945:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r),a=t(2558),l=t(9660),p=t(401);const __=o.__,d=e=>{const{title:n=__("Over 5 million WordPress sites are faster and more secure","jetpack-connection"),autoTrigger:t=!1,buttonLabel:o=__("Set up Jetpack","jetpack-connection"),apiRoot:i,apiNonce:c,registrationNonce:r,from:d,redirectUri:u,children:m,priceBefore:g,priceAfter:h,pricingIcon:_,pricingTitle:y,pricingCurrencyCode:f="USD",wpcomProductSlug:b,siteProductAvailabilityHandler:k,logo:C,rna:E=!1}=e,{handleRegisterSite:v,siteIsRegistering:j,userIsConnecting:w,registrationError:A,isOfflineMode:N}=(0,l.A)({registrationNonce:r,redirectUri:u,apiRoot:i,apiNonce:c,autoTrigger:t,from:d}),S=b||"",{run:R,hasCheckoutStarted:T}=(0,a.A)({productSlug:S,redirectUrl:u,siteProductAvailabilityHandler:k,from:d}),O=Boolean(A),I=j||w||T,P=S?R:v;return s().createElement(p.A,{title:n,buttonLabel:o,priceBefore:g,priceAfter:h,pricingIcon:_,pricingTitle:y,pricingCurrencyCode:f,handleButtonClick:P,displayButtonError:O,buttonIsLoading:I,logo:C,isOfflineMode:N,rna:E},m)};d.propTypes={title:c().string,buttonLabel:c().string,apiRoot:c().string.isRequired,apiNonce:c().string.isRequired,registrationNonce:c().string.isRequired,from:c().string,redirectUri:c().string.isRequired,autoTrigger:c().bool,pricingTitle:c().string.isRequired,pricingIcon:c().oneOfType([c().string,c().element]),priceBefore:c().number.isRequired,priceAfter:c().number.isRequired,pricingCurrencyCode:c().string,wpcomProductSlug:c().string,checkSiteHasWpcomProduct:c().func,logo:c().element};const u=d},401:(e,n,t)=>{"use strict";t.d(n,{A:()=>b});var o=t(8089),i=t(3924),c=t(9957),r=t(5879),s=t(6087),a=t(7723),l=t(2231),p=t(4804),d=t.n(p),u=t(3619),m=t.n(u),g=t(1609),h=t.n(g),_=t(2668);t(381);const __=a.__,y=d()("jetpack:connection:ConnectScreenRequiredPlanVisual"),f=e=>{const{title:n,buttonLabel:t,children:a,priceBefore:p,priceAfter:d,pricingIcon:u,pricingTitle:m,pricingCurrencyCode:g="USD",isLoading:f=!1,handleButtonClick:b=()=>{},displayButtonError:k=!1,buttonIsLoading:C=!1,logo:E,isOfflineMode:v,rna:j=!1}=e;y("props are %o",e);const w=(0,s.createInterpolateElement)(__("Already have a subscription? ","jetpack-connection"),{connectButton:h().createElement(o.A,{label:__("Log in to get started","jetpack-connection"),onClick:b,isLoading:C})}),A=v?(0,s.createInterpolateElement)(__("Unavailable in Offline Mode","jetpack-connection"),{a:h().createElement("a",{href:(0,i.A)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"})}):void 0;return h().createElement(_.A,{title:n,className:(0,l.A)("jp-connection__connect-screen-required-plan",f?"jp-connection__connect-screen-required-plan__loading":"",j?"rna":""),logo:E,rna:j},h().createElement("div",{className:"jp-connection__connect-screen-required-plan__content"},a,h().createElement("div",{className:"jp-connection__connect-screen-required-plan__pricing-card"},h().createElement(c.A,{title:m,icon:u,priceBefore:p,currencyCode:g,priceAfter:d},h().createElement(r.A,{agreeButtonLabel:t}),h().createElement(o.A,{label:t,onClick:b,displayError:k||v,errorMessage:A,isLoading:C,isDisabled:v}))),!v&&h().createElement("div",{className:"jp-connection__connect-screen-required-plan__with-subscription"},w)))};f.propTypes={pricingTitle:m().string.isRequired,priceBefore:m().number.isRequired,priceAfter:m().number.isRequired,pricingCurrencyCode:m().string,title:m().string,buttonLabel:m().string,pricingIcon:m().oneOfType([m().string,m().element]),isLoading:m().bool,handleButtonClick:m().func,displayButtonError:m().bool,buttonIsLoading:m().bool,logo:m().element,isOfflineMode:m().bool};const b=f},7840:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(5932),i=t(3619),c=t.n(i),r=t(1609);const s=e=>{const{redirectFunc:n=e=>window.location.assign(e),connectUrl:t,redirectUri:i=null,from:c}=e,[s,a]=(0,r.useState)(null);return t&&t!==s&&a(t),(0,r.useEffect)((()=>{s||o.Ay.fetchAuthorizationUrl(i).then((e=>a(e.authorizeUrl))).catch((e=>{throw e}))}),[]),s?(n(s+(c?(s.includes("?")?"&":"?")+"from="+encodeURIComponent(c):"")),null):null};s.propTypes={connectUrl:c().string,redirectUri:c().string.isRequired,from:c().string,redirectFunc:c().func};const a=s},648:(e,n,t)=>{"use strict";t.d(n,{A:()=>p});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r),a=t(7499);const __=o.__,l=e=>{const{connectedPlugins:n,disconnectingPlugin:t}=e,o=(0,r.useMemo)((()=>{if(n){return Object.keys(n).map((e=>Object.assign({slug:e},n[e]))).filter((e=>t!==e.slug))}return[]}),[n,t]);return n&&o.length>0?s().createElement(s().Fragment,null,s().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},s().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is powering other plugins on your site. If you disconnect, these plugins will no longer work.","jetpack-connection"))),s().createElement("div",{className:"jp-connection__disconnect-card__group"},o.map((e=>s().createElement(a.A,{title:e.name,key:e.slug}))))):null};l.propTypes={connectedPlugins:c().array,disconnectingPlugin:c().string};const p=l},7088:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(442),i=t(6461),c=t(6427),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(4175);const __=r.__,u=e=>{const{message:n,isRestoringConnection:t,restoreConnectionCallback:s,restoreConnectionError:a}=e,[l]=(0,o.A)(["md"],[">"]),u=d.A.notice+(l?" "+d.A["bigger-than-medium"]:""),m=p().createElement(c.Icon,{icon:p().createElement(c.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p().createElement(c.Path,{d:"M11.7815 4.93772C11.8767 4.76626 12.1233 4.76626 12.2185 4.93772L20.519 19.8786C20.6116 20.0452 20.4911 20.25 20.3005 20.25H3.69951C3.50889 20.25 3.3884 20.0452 3.48098 19.8786L11.7815 4.93772Z",stroke:"#D63638",strokeWidth:"1.5"}),p().createElement(c.Path,{d:"M13 10H11V15H13V10Z",fill:"#D63638"}),p().createElement(c.Path,{d:"M13 16H11V18H13V16Z",fill:"#D63638"}))});if(!n)return null;if(t)return p().createElement(c.Notice,{status:"error",isDismissible:!1,className:u},p().createElement("div",{className:d.A.message},p().createElement(i.A,{color:"#B32D2E",size:24}),__("Reconnecting Jetpack","jetpack-connection")));const g=a?p().createElement(c.Notice,{status:"error",isDismissible:!1,className:u+" "+d.A.error},p().createElement("div",{className:d.A.message},m,(0,r.sprintf)(/* translators: placeholder is the error. */ +__("By clicking %s, you agree to our Terms of Service and to sync your site‘s data with us.","jetpack-connection"),e),{strong:React.createElement("strong",null),tosLink:React.createElement(u,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(u,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),u=({slug:e,children:n})=>React.createElement("a",{className:"terms-of-service__link",href:(0,a.A)(e),rel:"noopener noreferrer",target:"_blank"},n),m=({className:e,multipleButtons:n,agreeButtonLabel:t,...o})=>React.createElement(l.Ay,i()({className:(0,s.A)(e,"terms-of-service")},o),n?React.createElement(p,{multipleButtonsLabels:n}):React.createElement(d,{agreeButtonLabel:t}))},110:(e,n,t)=>{"use strict";t.d(n,{Q:()=>o,Z:()=>i});const o={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-medium-semi-bold":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p","body-extra-small-bold":"p",label:"p"},i=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},7425:(e,n,t)=>{"use strict";t.d(n,{Ay:()=>d});var o=t(8579),i=t.n(o),c=t(2231),r=t(1609),s=t.n(r),a=t(110),l=t(4495);const p=(0,r.forwardRef)((({variant:e="body",children:n,component:t,className:o,...p},d)=>{const u=t||a.Q[e]||"span",m=(0,r.useMemo)((()=>a.Z.reduce(((e,n)=>(void 0!==p[n]&&(e+=l.A[`${n}-${p[n]}`]+" ",delete p[n]),e)),"")),[p]);return s().createElement(u,i()({className:(0,c.A)(l.A.reset,l.A[e],o,m)},p,{ref:d}),n)}));p.displayName="Text";const d=p},3924:(e,n,t)=>{"use strict";function o(e,n={}){const t={};let o;if("undefined"!=typeof window&&(o=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const n=new URL(e);e=`https://${n.host}${n.pathname}`,t.url=encodeURIComponent(e)}else t.source=encodeURIComponent(e);for(const e in n)t[e]=encodeURIComponent(n[e]);!Object.keys(t).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(t.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),o&&(t.calypso_env=o);return"https://jetpack.com/redirect/?"+Object.keys(t).map((e=>e+"="+t[e])).join("&")}t.d(n,{A:()=>o})},6439:(e,n,t)=>{let o={};try{o=t(9074)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),o={missingConfig:!0}}const i=e=>Object.hasOwn(o,e);e.exports={jetpackConfigHas:i,jetpackConfigGet:e=>{if(!i(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return o[e]}}},8421:(e,n,t)=>{"use strict";t.d(n,{A:()=>d});var o=t(8089),i=t(7723),c=t(3619),r=t.n(c),s=t(1609),a=t.n(s),l=t(9660);const __=i.__,p=e=>{const{apiRoot:n,apiNonce:t,connectLabel:i=__("Connect","jetpack-connection"),registrationNonce:c,redirectUri:r=null,from:s,autoTrigger:p=!1}=e,{handleRegisterSite:d,isRegistered:u,isUserConnected:m,siteIsRegistering:g,userIsConnecting:h,registrationError:_}=(0,l.A)({registrationNonce:c,redirectUri:r,apiRoot:n,apiNonce:t,autoTrigger:p,from:s});return a().createElement(a().Fragment,null,(!u||!m)&&a().createElement(o.A,{label:i,onClick:d,displayError:!!_,isLoading:g||h}))};p.propTypes={connectLabel:r().string,apiRoot:r().string.isRequired,apiNonce:r().string.isRequired,from:r().string,redirectUri:r().string.isRequired,registrationNonce:r().string.isRequired,autoTrigger:r().bool};const d=p},6212:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(7723),i=t(1609),c=t.n(i),r=t(9660),s=t(5582);const __=o.__,a=({title:e,buttonLabel:n,loadingLabel:t,apiRoot:o,apiNonce:i,registrationNonce:a,from:l,redirectUri:p,images:d,children:u,assetBaseUrl:m,autoTrigger:g,footer:h,skipUserConnection:_,skipPricingPage:y,logo:f})=>{const{handleRegisterSite:b,siteIsRegistering:k,userIsConnecting:C,registrationError:E,isOfflineMode:v}=(0,r.A)({registrationNonce:a,redirectUri:p,apiRoot:o,apiNonce:i,autoTrigger:g,from:l,skipUserConnection:_,skipPricingPage:y}),j=Boolean(E),w=k||C,A=E?.response?.code;return c().createElement(s.A,{title:e||__("Over 5 million WordPress sites are faster and more secure","jetpack-connection"),images:d||[],assetBaseUrl:m,buttonLabel:n||__("Set up Jetpack","jetpack-connection"),loadingLabel:t,handleButtonClick:b,displayButtonError:j,errorCode:A,buttonIsLoading:w,footer:h,isOfflineMode:v,logo:f},u)}},5582:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var o=t(3924),i=t(5879),c=t(8089),r=t(6087),s=t(7723),a=t(1609),l=t.n(a),p=t(2668);t(1772);const __=s.__,d=(e,n)=>{switch(e){case"fail_domain_forbidden":case"fail_ip_forbidden":case"fail_domain_tld":case"fail_subdomain_wpcom":case"siteurl_private_ip":return __("Your site host is on a private network. Jetpack can only connect to public sites.","jetpack-connection");case"connection_disabled":return __("This site has been suspended.","jetpack-connection")}if(n)return(0,r.createInterpolateElement)(__("Unavailable in Offline Mode","jetpack-connection"),{a:l().createElement("a",{href:(0,o.A)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"})})},u=({title:e,images:n,children:t,assetBaseUrl:o,isLoading:r,buttonLabel:s,handleButtonClick:a,displayButtonError:u,errorCode:m,buttonIsLoading:g,loadingLabel:h,footer:_,isOfflineMode:y,logo:f})=>l().createElement(p.A,{title:e,assetBaseUrl:o,images:n,className:"jp-connection__connect-screen"+(r?" jp-connection__connect-screen__loading":""),logo:f},l().createElement("div",{className:"jp-connection__connect-screen__content"},t,l().createElement("div",{className:"jp-connection__connect-screen__tos"},l().createElement(i.A,{agreeButtonLabel:s})),l().createElement(c.A,{label:s,onClick:a,displayError:u||y,errorMessage:d(m,y),isLoading:g,isDisabled:y}),l().createElement("span",{className:"jp-connection__connect-screen__loading-message",role:"status"},g?h||__("Loading","jetpack-connection"):""),_&&l().createElement("div",{className:"jp-connection__connect-screen__footer"},_)))},5745:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(1609),i=t.n(o);const c=({images:e,assetBaseUrl:n=""})=>{if(!e?.length)return null;const t=e.map(((e,t)=>i().createElement(i().Fragment,{key:t},i().createElement("img",{src:n+e,alt:""}))));return i().createElement("div",{className:"jp-connection__connect-screen__image-slider"},t)}},2668:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(7142),i=t(2231),c=t(1609),r=t.n(c),s=t(5745);t(9064);const a=({title:e,children:n,className:t,assetBaseUrl:c,images:a,logo:l,rna:p=!1})=>{const d=a?.length;return r().createElement("div",{className:(0,i.A)("jp-connection__connect-screen-layout",d?"jp-connection__connect-screen-layout__two-columns":"",t?" "+t:"")},p&&r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs"},r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__green"}),r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__yellow"}),r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__blue"})),r().createElement("div",{className:"jp-connection__connect-screen-layout__left"},l||r().createElement(o.A,null),r().createElement("h2",null,e),n),d?r().createElement("div",{className:"jp-connection__connect-screen-layout__right"},r().createElement(s.A,{images:a,assetBaseUrl:c})):null)}},7945:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r),a=t(2558),l=t(9660),p=t(401);const __=o.__,d=e=>{const{title:n=__("Over 5 million WordPress sites are faster and more secure","jetpack-connection"),autoTrigger:t=!1,buttonLabel:o=__("Set up Jetpack","jetpack-connection"),apiRoot:i,apiNonce:c,registrationNonce:r,from:d,redirectUri:u,children:m,priceBefore:g,priceAfter:h,pricingIcon:_,pricingTitle:y,pricingCurrencyCode:f="USD",wpcomProductSlug:b,siteProductAvailabilityHandler:k,logo:C,rna:E=!1}=e,{handleRegisterSite:v,siteIsRegistering:j,userIsConnecting:w,registrationError:A,isOfflineMode:N}=(0,l.A)({registrationNonce:r,redirectUri:u,apiRoot:i,apiNonce:c,autoTrigger:t,from:d}),S=b||"",{run:R,hasCheckoutStarted:T}=(0,a.A)({productSlug:S,redirectUrl:u,siteProductAvailabilityHandler:k,from:d}),O=Boolean(A),I=j||w||T,P=S?R:v;return s().createElement(p.A,{title:n,buttonLabel:o,priceBefore:g,priceAfter:h,pricingIcon:_,pricingTitle:y,pricingCurrencyCode:f,handleButtonClick:P,displayButtonError:O,buttonIsLoading:I,logo:C,isOfflineMode:N,rna:E},m)};d.propTypes={title:c().string,buttonLabel:c().string,apiRoot:c().string.isRequired,apiNonce:c().string.isRequired,registrationNonce:c().string.isRequired,from:c().string,redirectUri:c().string.isRequired,autoTrigger:c().bool,pricingTitle:c().string.isRequired,pricingIcon:c().oneOfType([c().string,c().element]),priceBefore:c().number.isRequired,priceAfter:c().number.isRequired,pricingCurrencyCode:c().string,wpcomProductSlug:c().string,checkSiteHasWpcomProduct:c().func,logo:c().element};const u=d},401:(e,n,t)=>{"use strict";t.d(n,{A:()=>b});var o=t(8089),i=t(3924),c=t(9957),r=t(5879),s=t(6087),a=t(7723),l=t(2231),p=t(4804),d=t.n(p),u=t(3619),m=t.n(u),g=t(1609),h=t.n(g),_=t(2668);t(381);const __=a.__,y=d()("jetpack:connection:ConnectScreenRequiredPlanVisual"),f=e=>{const{title:n,buttonLabel:t,children:a,priceBefore:p,priceAfter:d,pricingIcon:u,pricingTitle:m,pricingCurrencyCode:g="USD",isLoading:f=!1,handleButtonClick:b=()=>{},displayButtonError:k=!1,buttonIsLoading:C=!1,logo:E,isOfflineMode:v,rna:j=!1}=e;y("props are %o",e);const w=(0,s.createInterpolateElement)(__("Already have a subscription? ","jetpack-connection"),{connectButton:h().createElement(o.A,{label:__("Log in to get started","jetpack-connection"),onClick:b,isLoading:C})}),A=v?(0,s.createInterpolateElement)(__("Unavailable in Offline Mode","jetpack-connection"),{a:h().createElement("a",{href:(0,i.A)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"})}):void 0;return h().createElement(_.A,{title:n,className:(0,l.A)("jp-connection__connect-screen-required-plan",f?"jp-connection__connect-screen-required-plan__loading":"",j?"rna":""),logo:E,rna:j},h().createElement("div",{className:"jp-connection__connect-screen-required-plan__content"},a,h().createElement("div",{className:"jp-connection__connect-screen-required-plan__pricing-card"},h().createElement(c.A,{title:m,icon:u,priceBefore:p,currencyCode:g,priceAfter:d},h().createElement(r.A,{agreeButtonLabel:t}),h().createElement(o.A,{label:t,onClick:b,displayError:k||v,errorMessage:A,isLoading:C,isDisabled:v}))),!v&&h().createElement("div",{className:"jp-connection__connect-screen-required-plan__with-subscription"},w)))};f.propTypes={pricingTitle:m().string.isRequired,priceBefore:m().number.isRequired,priceAfter:m().number.isRequired,pricingCurrencyCode:m().string,title:m().string,buttonLabel:m().string,pricingIcon:m().oneOfType([m().string,m().element]),isLoading:m().bool,handleButtonClick:m().func,displayButtonError:m().bool,buttonIsLoading:m().bool,logo:m().element,isOfflineMode:m().bool};const b=f},7840:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(5932),i=t(3619),c=t.n(i),r=t(1609);const s=e=>{const{redirectFunc:n=e=>window.location.assign(e),connectUrl:t,redirectUri:i=null,from:c}=e,[s,a]=(0,r.useState)(null);return t&&t!==s&&a(t),(0,r.useEffect)((()=>{s||o.Ay.fetchAuthorizationUrl(i).then((e=>a(e.authorizeUrl))).catch((e=>{throw e}))}),[]),s?(n(s+(c?(s.includes("?")?"&":"?")+"from="+encodeURIComponent(c):"")),null):null};s.propTypes={connectUrl:c().string,redirectUri:c().string.isRequired,from:c().string,redirectFunc:c().func};const a=s},648:(e,n,t)=>{"use strict";t.d(n,{A:()=>p});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r),a=t(7499);const __=o.__,l=e=>{const{connectedPlugins:n,disconnectingPlugin:t}=e,o=(0,r.useMemo)((()=>{if(n){return Object.keys(n).map((e=>Object.assign({slug:e},n[e]))).filter((e=>t!==e.slug))}return[]}),[n,t]);return n&&o.length>0?s().createElement(s().Fragment,null,s().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},s().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is powering other plugins on your site. If you disconnect, these plugins will no longer work.","jetpack-connection"))),s().createElement("div",{className:"jp-connection__disconnect-card__group"},o.map((e=>s().createElement(a.A,{title:e.name,key:e.slug}))))):null};l.propTypes={connectedPlugins:c().array,disconnectingPlugin:c().string};const p=l},7088:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(442),i=t(6461),c=t(6427),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(4175);const __=r.__,u=e=>{const{message:n,isRestoringConnection:t,restoreConnectionCallback:s,restoreConnectionError:a}=e,[l]=(0,o.A)(["md"],[">"]),u=d.A.notice+(l?" "+d.A["bigger-than-medium"]:""),m=p().createElement(c.Icon,{icon:p().createElement(c.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p().createElement(c.Path,{d:"M11.7815 4.93772C11.8767 4.76626 12.1233 4.76626 12.2185 4.93772L20.519 19.8786C20.6116 20.0452 20.4911 20.25 20.3005 20.25H3.69951C3.50889 20.25 3.3884 20.0452 3.48098 19.8786L11.7815 4.93772Z",stroke:"#D63638",strokeWidth:"1.5"}),p().createElement(c.Path,{d:"M13 10H11V15H13V10Z",fill:"#D63638"}),p().createElement(c.Path,{d:"M13 16H11V18H13V16Z",fill:"#D63638"}))});if(!n)return null;if(t)return p().createElement(c.Notice,{status:"error",isDismissible:!1,className:u},p().createElement("div",{className:d.A.message},p().createElement(i.A,{color:"#B32D2E",size:24}),__("Reconnecting Jetpack","jetpack-connection")));const g=a?p().createElement(c.Notice,{status:"error",isDismissible:!1,className:u+" "+d.A.error},p().createElement("div",{className:d.A.message},m,(0,r.sprintf)(/* translators: placeholder is the error. */ __("There was an error reconnecting Jetpack. Error: %s","jetpack-connection"),a))):null;return p().createElement(p().Fragment,null,g,p().createElement(c.Notice,{status:"error",isDismissible:!1,className:u},p().createElement("div",{className:d.A.message},m,n),s&&p().createElement("a",{onClick:s,onKeyDown:s,className:d.A.button,href:"#"},__("Restore Connection","jetpack-connection"))))};u.propTypes={message:a().string.isRequired,restoreConnectionCallback:a().func,isRestoringConnection:a().bool,restoreConnectionError:a().string};const m=u},7499:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(3619),i=t.n(o),c=t(1609),r=t.n(c);t(7419);const s=e=>{const{title:n,value:t,description:o}=e;return r().createElement("div",{className:"jp-connection__disconnect-card card"},r().createElement("div",{className:"jp-connection__disconnect-card__card-content"},r().createElement("p",{className:"jp-connection__disconnect-card__card-headline"},n),(t||o)&&r().createElement("div",{className:"jp-connection__disconnect-card__card-stat-block"},r().createElement("span",{className:"jp-connection__disconnect-card__card-stat"},t),r().createElement("div",{className:"jp-connection__disconnect-card__card-description"},o))))};s.propTypes={title:i().string,value:i().oneOfType([i().string,i().number]),description:i().string};const a=s},3269:(e,n,t)=>{"use strict";t.d(n,{A:()=>y});var o=t(372),i=t(5932),c=t(6439),r=t(6427),s=t(7723),a=t(3619),l=t.n(a),p=t(1609),d=t.n(p),u=(t(785),t(4472)),m=t(8503),g=t(412),h=t(8090);const __=s.__,_=e=>{const[n,t]=(0,p.useState)(!1),[s,a]=(0,p.useState)(!1),[l,_]=(0,p.useState)(!1),[y,f]=(0,p.useState)(!1),[b,k]=(0,p.useState)(!1),[C,E]=(0,p.useState)(!1),{apiRoot:v,apiNonce:j,connectedPlugins:w,title:A=__("Are you sure you want to disconnect?","jetpack-connection"),pluginScreenDisconnectCallback:N,onDisconnected:S,onError:R,disconnectStepComponent:T,context:O="jetpack-dashboard",connectedUser:I={},connectedSiteId:P,isOpen:D,onClose:x}=e;let U="";(0,c.jetpackConfigHas)("consumer_slug")&&(U=(0,c.jetpackConfigGet)("consumer_slug"));const L=(0,p.useMemo)((()=>({context:O,plugin:U})),[O,U]);(0,p.useEffect)((()=>{i.Ay.setApiRoot(v),i.Ay.setApiNonce(j)}),[v,j]),(0,p.useEffect)((()=>{I&&I.ID&&I.login&&o.A.initialize(I.ID,I.login)}),[I,I.ID,I.login]),(0,p.useEffect)((()=>{D&&o.A.tracks.recordEvent("jetpack_disconnect_dialog_open",L)}),[D,L]),(0,p.useEffect)((()=>{D&&(s?!s||y||b?y&&!b?o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"survey"},L)):b&&o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"thank_you"},L)):o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect_confirm"},L)):o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect"},L)))}),[D,s,y,b,L]);const F=(0,p.useCallback)((()=>{i.Ay.disconnectSite().then((()=>{t(!1),a(!0)})).catch((e=>{t(!1),_(e),R&&R(e)}))}),[t,a,_,R]),B=(0,p.useCallback)(((e,n)=>{E(!0),fetch("https://public-api.wordpress.com/wpcom/v2/marketing/feedback-survey",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{if(!0!==e.success)throw new Error("Survey endpoint returned error code "+e.code);o.A.tracks.recordEvent("jetpack_disconnect_survey_submit",n),k(!0),E(!1)})).catch((e=>{o.A.tracks.recordEvent("jetpack_disconnect_survey_error",Object.assign({},{error:e.message},n)),k(!0),E(!1)}))}),[E,k]),M=(0,p.useCallback)((e=>{e&&e.preventDefault(),_(!1),t(!0),"plugins"!==O?F():N&&N(e)}),[_,t,N,O,F]),$=(0,p.useCallback)((e=>o.A.tracks.recordEvent(e,L)),[L]),J=(0,p.useCallback)((()=>!(!I.ID||!P)),[I,P]),z=(0,p.useCallback)(((e,n,t)=>{if(t&&t.preventDefault(),!J())return void k(!0);const o={site_id:P,user_id:I.ID,survey_id:"jetpack-plugin-disconnect",survey_responses:{"why-cancel":{response:e,text:n||null}}},i=Object.assign({},L,{disconnect_reason:e});B(o,i)}),[B,k,J,P,I,L]),q=(0,p.useCallback)((e=>{e&&e.preventDefault(),S&&S(),x()}),[S,x]),G=(0,p.useCallback)((e=>{e&&e.preventDefault(),f(!0)}),[f]);return d().createElement(d().Fragment,null,D&&d().createElement(r.Modal,{title:"",contentLabel:A,aria:{labelledby:"jp-connection__disconnect-dialog__heading"},onRequestClose:x,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__disconnect-dialog"+(s?" jp-connection__disconnect-dialog__success":"")},s?!s||y||b?y&&!b?d().createElement(g.A,{isSubmittingFeedback:C,onFeedBackProvided:z,onExit:q}):b?d().createElement(h.A,{onExit:q}):void 0:d().createElement(m.A,{canProvideFeedback:J(),onProvideFeedback:G,onExit:q}):d().createElement(u.A,{title:A,connectedPlugins:w,disconnectStepComponent:T,isDisconnecting:n,closeModal:x,onDisconnect:M,disconnectError:l,context:O,disconnectingPlugin:U,trackModalClick:$})))};_.propTypes={apiRoot:l().string.isRequired,apiNonce:l().string.isRequired,title:l().string,onDisconnected:l().func,onError:l().func,context:l().string,connectedPlugins:l().oneOfType([l().array,l().object]),pluginScreenDisconnectCallback:l().func,disconnectStepComponent:l().element,connectedUser:l().object,connectedSiteId:l().number,isOpen:l().bool,onClose:l().func};const y=_},8503:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(9121),i=t(6427),c=t(6087),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(2365);const __=r.__,u=e=>{const{onExit:n,canProvideFeedback:t,onProvideFeedback:r}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(o.A,{icon:"unlink",imageUrl:d}),p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy jp-connection__disconnect-dialog__step-copy--narrow"},p().createElement("h1",null,(0,c.createInterpolateElement)(__("Jetpack has been
successfully disconnected.","jetpack-connection"),{br:p().createElement("br",null)})),t&&p().createElement(p().Fragment,null,p().createElement("p",null,__("We’re sorry to see you go. Here at Jetpack, we’re always striving to provide the best experience for our customers. Please take our short survey (2 minutes, promise).","jetpack-connection")),p().createElement("p",null,p().createElement(i.Button,{variant:"primary",onClick:r,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Help us improve","jetpack-connection"))),p().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:n},__("No thank you","jetpack-connection"))),!t&&p().createElement(p().Fragment,null,p().createElement("p",null,p().createElement(i.Button,{variant:"primary",onClick:n,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-connection"))))))};u.propTypes={onExit:a().func,onProvideFeedback:a().func,canProvideFeedback:a().bool};const m=u},4472:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(3924),i=t(6427),c=t(6087),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(648);const __=r.__,u=e=>{const{title:n,isDisconnecting:t,onDisconnect:r,disconnectError:s,disconnectStepComponent:a,connectedPlugins:u,disconnectingPlugin:m,closeModal:g,context:h,trackModalClick:_}=e,y=(0,l.useCallback)((()=>_("jetpack_disconnect_dialog_click_learn_about")),[_]),f=(0,l.useCallback)((()=>_("jetpack_disconnect_dialog_click_support")),[_]),b=(0,l.useCallback)((()=>{_("jetpack_disconnect_dialog_click_stay_connected"),g()}),[_,g]),k=(0,l.useCallback)((e=>{_("jetpack_disconnect_dialog_click_disconnect"),r(e)}),[_,r]),C=(0,l.useCallback)((e=>{"Escape"!==e.key||t||b()}),[b,t]);(0,l.useEffect)((()=>(document.addEventListener("keydown",C,!1),()=>{document.removeEventListener("keydown",C,!1)})),[]);return p().createElement(p().Fragment,null,p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement("h1",{id:"jp-connection__disconnect-dialog__heading"},n),p().createElement(d.A,{connectedPlugins:u,disconnectingPlugin:m}),a,(()=>{if(!(u&&Object.keys(u).filter((e=>e!==m)).length)&&!a)return p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is currently powering multiple products on your site.","jetpack-connection"),p().createElement("br",null),__("Once you disconnect Jetpack, these will no longer work.","jetpack-connection")))})()),p().createElement("div",{className:"jp-connection__disconnect-dialog__actions"},p().createElement("div",{className:"jp-row"},p().createElement("div",{className:"lg-col-span-8 md-col-span-9 sm-col-span-4"},p().createElement("p",null,(0,c.createInterpolateElement)(__("Need help? Learn more about the Jetpack connection or contact Jetpack support.","jetpack-connection"),{strong:p().createElement("strong",null),jpConnectionInfoLink:p().createElement(i.ExternalLink,{href:(0,o.A)("why-the-wordpress-com-connection-is-important-for-jetpack"),className:"jp-connection__disconnect-dialog__link",onClick:y}),jpSupportLink:p().createElement(i.ExternalLink,{href:(0,o.A)("jetpack-support"),className:"jp-connection__disconnect-dialog__link",onClick:f})}))),p().createElement("div",{className:"jp-connection__disconnect-dialog__button-wrap lg-col-span-4 md-col-span-7 sm-col-span-4"},p().createElement(i.Button,{variant:"primary",disabled:t,onClick:b,className:"jp-connection__disconnect-dialog__btn-dismiss"},"plugins"===h?__("Cancel","jetpack-connection"):__("Stay connected","jetpack-connection",0)),(()=>{let e=__("Disconnect","jetpack-connection");return t?e=__("Disconnecting…","jetpack-connection"):"plugins"===h&&(e=__("Deactivate","jetpack-connection")),p().createElement(i.Button,{variant:"primary",disabled:t,onClick:k,className:"jp-connection__disconnect-dialog__btn-disconnect"},e)})())),s&&p().createElement("p",{className:"jp-connection__disconnect-dialog__error"},s)))};u.propTypes={title:a().string,isDisconnecting:a().bool,onDisconnect:a().func,disconnectError:a().bool,disconnectStepComponent:a().element,connectedPlugins:a().array,disconnectingPlugin:a().string,closeModal:a().func,context:a().string,trackModalClick:a().func};const m=u},412:(e,n,t)=>{"use strict";t.d(n,{A:()=>p});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r),a=(t(255),t(2951));const __=o.__,l=e=>{const{onExit:n,onFeedBackProvided:t,isSubmittingFeedback:o}=e;return s().createElement("div",{className:"jp-connection__disconnect-dialog__content"},s().createElement("h1",null,__("Before you go, help us improve Jetpack","jetpack-connection")),s().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Let us know what didn‘t work for you","jetpack-connection")),s().createElement(a.A,{onSubmit:t,isSubmittingFeedback:o}),s().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:n},__("Skip for now","jetpack-connection")))};l.PropTypes={onExit:c().func,onFeedBackProvided:c().func,isSubmittingFeedback:c().bool};const p=l},8090:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(9121),i=t(6427),c=t(6087),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(9362);const __=r.__,u=e=>{const{onExit:n}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(o.A,{format:"vertical",imageUrl:d}),p().createElement("div",{className:"jp-connection__disconnect-dialog__copy"},p().createElement("h1",null,__("Thank you!","jetpack-connection")),p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},(0,c.createInterpolateElement)(__("Your answer has been submitted.
Thanks for your input on how we can improve Jetpack.","jetpack-connection"),{br:p().createElement("br",null)})),p().createElement(i.Button,{variant:"primary",onClick:n,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-connection"))))};u.PropTypes={onExit:a().func,assetBaseUrl:a().string};const m=u},2951:(e,n,t)=>{"use strict";t.d(n,{A:()=>d});var o=t(6427),i=t(7723),c=t(3619),r=t.n(c),s=t(1609),a=t.n(s),l=t(8233);const __=i.__,p=e=>{const{onSubmit:n,isSubmittingFeedback:t}=e,[i,c]=(0,s.useState)(),[r,p]=(0,s.useState)(),d=[{id:"troubleshooting",answerText:__("Troubleshooting - I'll be reconnecting afterwards.","jetpack-connection")},{id:"not-working",answerText:__("I can't get it to work.","jetpack-connection")},{id:"slowed-down-site",answerText:__("It slowed down my site.","jetpack-connection")},{id:"buggy",answerText:__("It's buggy.","jetpack-connection")},{id:"what-does-it-do",answerText:__("I don't know what it does.","jetpack-connection")}],u="another-reason",m=(0,s.useCallback)((()=>{n(i,i===u?r:"")}),[n,u,r,i]),g=(0,s.useCallback)((e=>{const n=e.target.value;e.stopPropagation(),p(n)}),[p]),h=e=>e===i?"jp-connect__disconnect-survey-card--selected":"",_=(0,s.useCallback)(((e,n)=>{switch(n.key){case"Enter":case"Space":case"Spacebar":case" ":c(e)}}),[c]);return a().createElement(a().Fragment,null,a().createElement("div",{className:"jp-connection__disconnect-dialog__survey"},d.map((e=>a().createElement(l.A,{key:e.id,id:e.id,onClick:c,onKeyDown:_,className:"card jp-connect__disconnect-survey-card "+h(e.id)},a().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},e.answerText)))),a().createElement(l.A,{id:u,key:u,onClick:c,onKeyDown:_,className:"card jp-connect__disconnect-survey-card "+h(u)},a().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},__("Other:","jetpack-connection")," ",a().createElement("input",{placeholder:__("share your experience","jetpack-connection"),className:"jp-connect__disconnect-survey-card__input",type:"text",value:r,onChange:g,maxLength:1e3})))),a().createElement("p",null,a().createElement(o.Button,{disabled:!i||t,variant:"primary",onClick:m,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},t?__("Submitting…","jetpack-connection"):__("Submit Feedback","jetpack-connection",0))))};p.PropTypes={onSubmit:r().func,isSubmittingFeedback:r().bool};const d=p},8233:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(1609),i=t.n(o);t(255);const c=e=>{const{id:n,onClick:t,onKeyDown:c,children:r,className:s}=e,a=(0,o.useCallback)((()=>{t(n)}),[n,t]),l=(0,o.useCallback)((e=>{c(n,e)}),[n,c]);return i().createElement("div",{tabIndex:"0",role:"button",onClick:a,onKeyDown:l,className:"card jp-connect__disconnect-survey-card "+s},r)}},7018:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r);t(3732);const __=o.__,a=e=>{const{title:n,isLoading:t=!1,width:o="100%",displayTOS:i,scrollToIframe:c=!1,connectUrl:a,onComplete:l,onThirdPartyCookiesBlocked:p,location:d}=e;let{height:u="300"}=e;const m=(0,r.useRef)(void 0),g=(0,r.useRef)(void 0),h=e=>{if(g.current&&e.source===g.current.contentWindow)switch(e.data){case"close":window.removeEventListener("message",h),l&&l();break;case"wpcom_nocookie":p&&p()}};(0,r.useEffect)((()=>{c&&window.scrollTo(0,m.current.offsetTop-10),window.addEventListener("message",h)}));let _=a.replace("authorize/","authorize_iframe/");return _.includes("?")||(_+="?"),i&&(_+="&display-tos",u=(parseInt(u)+50).toString()),_+="&iframe_height="+parseInt(u),d&&(_+="&iframe_source="+d),s().createElement("div",{className:"dops-card fade-in jp-iframe-wrap",ref:m},s().createElement("h1",null,n),t?s().createElement("p",null,__("Loading…","jetpack-connection")):s().createElement("iframe",{title:n,width:o,height:u,src:_,ref:g}))};a.propTypes={title:c().string.isRequired,isLoading:c().bool,width:c().string,height:c().string,connectUrl:c().string.isRequired,displayTOS:c().bool.isRequired,scrollToIframe:c().bool,onComplete:c().func,onThirdPartyCookiesBlocked:c().func,location:c().string};const l=a},4981:(e,n,t)=>{"use strict";t.d(n,{A:()=>C});var o=t(7425),i=t(3924),c=t(1112),r=t(6427),s=t(6087),a=t(7723),l=t(7750),p=t(1386),d=t(8391),u=t(2231),m=t(3619),g=t.n(m),h=t(1609),_=t.n(h),y=t(3269);t(2057);const __=a.__,f=e=>{const{title:n=__("Manage your Jetpack connection","jetpack-connection"),apiRoot:t,apiNonce:c,connectedPlugins:s,onDisconnected:a,context:l="jetpack-dashboard",connectedUser:p={},connectedSiteId:d,isOpen:u=!1,onClose:m}=e,[g,f]=(0,h.useState)(!1),C=(0,h.useCallback)((e=>{e&&e.preventDefault(),f(!0)}),[f]),E=(0,h.useCallback)((e=>{e&&e.preventDefault(),f(!1)}),[f]);return _().createElement(_().Fragment,null,u&&_().createElement(_().Fragment,null,_().createElement(r.Modal,{title:"",contentLabel:n,aria:{labelledby:"jp-connection__manage-dialog__heading"},shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__manage-dialog"},_().createElement("div",{className:"jp-connection__manage-dialog__content"},_().createElement("h1",{id:"jp-connection__manage-dialog__heading"},n),_().createElement(o.Ay,{className:"jp-connection__manage-dialog__large-text"},__("At least one user must be connected for your Jetpack products to work properly.","jetpack-connection")),_().createElement(b,{title:__("Transfer ownership to another admin","jetpack-connection"),link:(0,i.A)("calypso-settings-manage-connection",{site:window?.myJetpackInitialState?.siteSuffix}),key:"transfer",action:"transfer"}),_().createElement(b,{title:__("Disconnect Jetpack","jetpack-connection"),onClick:C,key:"disconnect",action:"disconnect"})),_().createElement(k,{onClose:m})),_().createElement(y.A,{apiRoot:t,apiNonce:c,onDisconnected:a,connectedPlugins:s,connectedSiteId:d,connectedUser:p,isOpen:g,onClose:E,context:l})))},b=({title:e,onClick:n=()=>null,link:t="#",action:o})=>_().createElement("div",{className:"jp-connection__manage-dialog__action-card card"},_().createElement("div",{className:"jp-connection__manage-dialog__action-card__card-content"},_().createElement("a",{href:t,className:(0,u.A)("jp-connection__manage-dialog__action-card__card-headline",o),onClick:n},e,_().createElement(l.A,{icon:"disconnect"===o?p.A:d.A,className:"jp-connection__manage-dialog__action-card__icon"})))),k=({onClose:e})=>_().createElement("div",{className:"jp-row jp-connection__manage-dialog__actions"},_().createElement("div",{className:"jp-connection__manage-dialog__text-wrap lg-col-span-9 md-col-span-7 sm-col-span-3"},_().createElement(o.Ay,null,(0,s.createInterpolateElement)(__("Need help? Learn more about the Jetpack connection or contact Jetpack support","jetpack-connection"),{strong:_().createElement("strong",null),connectionInfoLink:_().createElement(r.ExternalLink,{href:(0,i.A)("why-the-wordpress-com-connection-is-important-for-jetpack"),className:"jp-connection__manage-dialog__link"}),supportLink:_().createElement(r.ExternalLink,{href:(0,i.A)("jetpack-support"),className:"jp-connection__manage-dialog__link"})}))),_().createElement("div",{className:"jp-connection__manage-dialog__button-wrap lg-col-span-3 md-col-span-1 sm-col-span-1"},_().createElement(c.A,{weight:"regular",variant:"secondary",onClick:e,className:"jp-connection__manage-dialog__btn-dismiss"},__("Cancel","jetpack-connection"))));f.propTypes={title:g().string,apiRoot:g().string.isRequired,apiNonce:g().string.isRequired,connectedPlugins:g().oneOfType([g().array,g().object]),onDisconnected:g().func,context:g().string,connectedUser:g().object,connectedSiteId:g().number,isOpen:g().bool,onClose:g().func};const C=f},9660:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var o=t(5932),i=t(7999),c=t(7143),r=t(1609),s=t(4293);const a=window?.JP_CONNECTION_INITIAL_STATE||(0,i.getScriptData)()?.connection||{},l=({registrationNonce:e=a.registrationNonce,apiRoot:n=a.apiRoot,apiNonce:t=a.apiNonce,redirectUri:i,autoTrigger:l,from:p,skipUserConnection:d,skipPricingPage:u}={})=>{const{registerSite:m,connectUser:g,refreshConnectedPlugins:h}=(0,c.useDispatch)(s.a),_=(0,c.useSelect)((e=>e(s.a).getRegistrationError())),{siteIsRegistering:y,userIsConnecting:f,userConnectionData:b,connectedPlugins:k,connectionErrors:C,isRegistered:E,isUserConnected:v,hasConnectedOwner:j,isOfflineMode:w}=(0,c.useSelect)((e=>({siteIsRegistering:e(s.a).getSiteIsRegistering(),userIsConnecting:e(s.a).getUserIsConnecting(),userConnectionData:e(s.a).getUserConnectionData(),connectedPlugins:e(s.a).getConnectedPlugins(),connectionErrors:e(s.a).getConnectionErrors(),isOfflineMode:e(s.a).getIsOfflineMode(),...e(s.a).getConnectionStatus()}))),A=()=>d?i?(window.location=i,Promise.resolve(i)):Promise.resolve():g({from:p,redirectUri:i,skipPricingPage:u}),N=n=>(n&&n.preventDefault(),E?A():m({registrationNonce:e,redirectUri:i,from:p}).then((()=>A())));return(0,r.useEffect)((()=>{o.Ay.setApiRoot(n),o.Ay.setApiNonce(t)}),[n,t]),(0,r.useEffect)((()=>{!l||y||f||N()}),[]),{handleRegisterSite:N,handleConnectUser:A,refreshConnectedPlugins:h,isRegistered:E,isUserConnected:v,siteIsRegistering:y,userIsConnecting:f,registrationError:_,userConnectionData:b,hasConnectedOwner:j,connectedPlugins:k,connectionErrors:C,isOfflineMode:w}}},3765:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var o=t(7999);function i(){const e=("undefined"!=typeof window&&window?.JP_CONNECTION_INITIAL_STATE||(0,o.getScriptData)()?.connection)?.calypsoEnv;switch(e){case"development":return"http://calypso.localhost:3000/";case"wpcalypso":return"https://wpcalypso.wordpress.com/";case"horizon":return"https://horizon.wordpress.com/";default:return"https://wordpress.com/"}}},4617:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});const o=e=>{window.location.replace(e)}},9628:(e,n,t)=>{"use strict";t.d(n,{A:()=>r,R:()=>s});var o=t(7088),i=t(9660),c=t(1713);function r(){const{connectionErrors:e}=(0,i.A)({}),n=Object.values(e).shift(),t=n&&Object.values(n).length&&Object.values(n).shift().error_message;return{hasConnectionError:Boolean(t),connectionErrorMessage:t}}const s=()=>{const{hasConnectionError:e,connectionErrorMessage:n}=r(),{restoreConnection:t,isRestoringConnection:i,restoreConnectionError:s}=(0,c.A)();return e?React.createElement(o.A,{isRestoringConnection:i,restoreConnectionError:s,restoreConnectionCallback:t,message:n}):null}},2558:(e,n,t)=>{"use strict";t.d(n,{A:()=>f});var o=t(5932),i=t(7999),c=t(7143),r=t(4804),s=t.n(r),a=t(1609),l=t(3765),p=t(9660),d=t(4293);const u=s()("jetpack:connection:useProductCheckoutWorkflow"),{registrationNonce:m,apiRoot:g,apiNonce:h,siteSuffix:_}=window?.JP_CONNECTION_INITIAL_STATE||(0,i.getScriptData)()?.connection||{},y=()=>"undefined"!=typeof window?window?.myJetpackInitialState?.adminUrl:null;function f({productSlug:e,redirectUrl:n,siteSuffix:t=_,adminUrl:i=y(),connectAfterCheckout:r=!1,siteProductAvailabilityHandler:s=null,quantity:f=null,from:b,useBlogIdSuffix:k=!1}={}){u("productSlug is %s",e),u("redirectUrl is %s",n),u("siteSuffix is %s",t),u("from is %s",b);const[C,E]=(0,a.useState)(!1),{registerSite:v}=(0,c.useDispatch)(d.a),j=(0,c.useSelect)((e=>e(d.a).getBlogId()),[]);u("blogID is %s",j??"undefined"),k=k&&!!j;const{isUserConnected:w,isRegistered:A,handleConnectUser:N}=(0,p.A)({redirectUri:n,from:b}),S=(0,a.useMemo)((()=>{const o=(0,l.A)(),c=(!A||!w)&&r,s=c?"checkout/jetpack/":`checkout/${k?j.toString():t}/`,a=new URL(`${o}${s}${e}${null!=f?`:-q-${f}`:""}`);return c?(a.searchParams.set("connect_after_checkout",!0),a.searchParams.set("admin_url",i),a.searchParams.set("from_site_slug",t)):a.searchParams.set("site",t),a.searchParams.set("source",b),a.searchParams.set("redirect_to",n),w||a.searchParams.set("unlinked","1"),a}),[A,w,r,t,f,e,b,n,i,k,j]);u("isRegistered is %s",A),u("isUserConnected is %s",w),u("connectAfterCheckout is %s",r),u("checkoutUrl is %s",S);const R=(e=null)=>Promise.resolve(s&&s()).then((n=>{if(e&&S.searchParams.set("redirect_to",e),n)return u("handleAfterRegistration: Site has a product associated"),N();u("handleAfterRegistration: Site does not have a product associated. Redirecting to checkout %s",S),window.location.href=S}));return(0,a.useEffect)((()=>{o.Ay.setApiRoot(g),o.Ay.setApiNonce(h)}),[]),{run:(e,t=null)=>(e&&e.preventDefault(),E(!0),r?((e=null)=>{e&&S.searchParams.set("redirect_to",e),u("Redirecting to connectAfterCheckout flow: %s",S),window.location.href=S})(t):A?R(t):void v({registrationNonce:m,redirectUri:n}).then((()=>R(t)))),isRegistered:A,hasCheckoutStarted:C}}},1713:(e,n,t)=>{"use strict";t.d(n,{A:()=>p});var o=t(5932),i=t(7999),c=t(7143),r=t(1609),s=t(4293);const{apiRoot:a,apiNonce:l}=window?.JP_CONNECTION_INITIAL_STATE||(0,i.getScriptData)()?.connection||{};function p(){const[e,n]=(0,r.useState)(!1),[t,i]=(0,r.useState)(null),{disconnectUserSuccess:p,setConnectionErrors:d}=(0,c.useDispatch)(s.a);return(0,r.useEffect)((()=>{o.Ay.setApiRoot(a),o.Ay.setApiNonce(l)}),[]),{restoreConnection:(e=!0)=>(n(!0),i(null),o.Ay.reconnect().then((n=>("in_progress"===n.status?(p(),d({}),e&&(window.location.href="/wp-admin/admin.php?page=my-jetpack#/connection")):window.location.reload(),n))).catch((e=>{throw i(e),n(!1),e}))),isRestoringConnection:e,restoreConnectionError:t}}},8980:(e,n,t)=>{"use strict";t.d(n,{AY:()=>g.A,F0:()=>o.A,Hx:()=>y.a,JC:()=>l.A,Jl:()=>i.A,Ni:()=>u.A,Ob:()=>b.A,Rc:()=>p.R,Sx:()=>p.A,ag:()=>_.A,bo:()=>d.A,cS:()=>f.A,d1:()=>h.A,mX:()=>a.A,nM:()=>c.A,pK:()=>r.A,w5:()=>m.A,xW:()=>s.A});var o=t(6212),i=t(2668),c=t(7945),r=t(8421),s=t(7018),a=t(7840),l=t(7088),p=t(9628),d=t(3269),u=t(7499),m=t(9660),g=t(4981),h=t(4617),_=t(3765),y=t(4293),f=t(2558),b=t(1713)},3935:(e,n,t)=>{"use strict";t.d(n,{A1:()=>a,Ay:()=>E,DO:()=>s,Ij:()=>r,Kl:()=>m,LW:()=>l,MU:()=>g,XY:()=>p,ZO:()=>c,dz:()=>d,gH:()=>u,v_:()=>i});var o=t(5932);const i="SET_CONNECTION_STATUS",c="SET_CONNECTION_STATUS_IS_FETCHING",r="SET_SITE_IS_REGISTERING",s="SET_USER_IS_CONNECTING",a="SET_REGISTRATION_ERROR",l="CLEAR_REGISTRATION_ERROR",p="SET_AUTHORIZATION_URL",d="DISCONNECT_USER_SUCCESS",u="SET_CONNECTED_PLUGINS",m="SET_CONNECTION_ERRORS",g="SET_IS_OFFLINE_MODE",h=e=>({type:i,connectionStatus:e}),_=e=>({type:r,isRegistering:e}),y=e=>({type:s,isConnecting:e}),f=e=>({type:a,registrationError:e}),b=()=>({type:l}),k=e=>({type:p,authorizationUrl:e}),C=e=>({type:u,connectedPlugins:e});const E={setConnectionStatus:h,setConnectionStatusIsFetching:e=>({type:c,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:_,setUserIsConnecting:y,setRegistrationError:f,clearRegistrationError:b,setAuthorizationUrl:k,registerSite:function*({registrationNonce:e,redirectUri:n,from:t=""}){yield b(),yield _(!0);try{const o=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:n,from:t};return yield h({isRegistered:!0}),yield k(o.authorizeUrl),yield _(!1),Promise.resolve(o)}catch(e){return yield f(e),yield _(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:n,redirectUri:t,skipPricingPage:o}={}){yield y(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:n,redirectUri:t,skipPricingPage:o}},disconnectUserSuccess:()=>({type:d}),setConnectedPlugins:C,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((n=>o.Ay.fetchConnectedPlugins().then((t=>{e(C(t)),n(t)})))),setConnectionErrors:e=>({type:m,connectionErrors:e}),setIsOfflineMode:e=>({type:g,isOfflineMode:e})}},2494:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var o=t(5932),i=t(7143),c=t(2279);const r={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>o.Ay.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:n,from:t})=>o.Ay.registerSite(e,n,t),CONNECT_USER:(0,i.createRegistryControl)((({resolveSelect:e})=>({from:n,redirectFunc:t,redirectUri:o,skipPricingPage:i}={})=>new Promise(((r,s)=>{e(c.A).getAuthorizationUrl(o).then((e=>{const o=t||(e=>window.location.assign(e)),c=new URL(e);i&&c.searchParams.set("skip_pricing","true"),n&&c.searchParams.set("from",encodeURIComponent(n));const s=c.toString();o(s),r(s)})).catch((e=>{s(e)}))}))))}},5051:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(7143),i=t(3935);const c=(0,o.combineReducers)({connectionStatus:(e={},n)=>{switch(n.type){case i.v_:return{...e,...n.connectionStatus};case i.dz:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,n)=>n.type===i.ZO?n.isFetching:e,siteIsRegistering:(e=!1,n)=>n.type===i.Ij?n.isRegistering:e,userIsConnecting:(e=!1,n)=>n.type===i.DO?n.isConnecting:e,registrationError:(e,n)=>{switch(n.type){case i.LW:return!1;case i.A1:return n.registrationError;default:return e}},authorizationUrl:(e,n)=>n.type===i.XY?n.authorizationUrl:e,userConnectionData:(e,n)=>(n.type,e),connectedPlugins:(e={},n)=>n.type===i.gH?n.connectedPlugins:e,connectionErrors:(e={},n)=>n.type===i.Kl?n.connectionErrors:e,isOfflineMode:(e=!1,n)=>n.type===i.MU?n.isConnecting:e})},8019:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var o=t(7143),i=t(3935),c=t(2279);const r={...{getAuthorizationUrl:{isFulfilled:(e,...n)=>{const t=Boolean(e.authorizationUrl),i=(0,o.select)(c.A).hasFinishedResolution("getAuthorizationUrl",n);return t&&!i&&(0,o.dispatch)(c.A).finishResolution("getAuthorizationUrl",n),t},*fulfill(e){const n=yield i.Ay.fetchAuthorizationUrl(e);yield i.Ay.setAuthorizationUrl(n.authorizeUrl)}}}}},2676:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});const o={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},8734:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(7143);class i{static store=null;static mayBeInit(e,n){null===i.store&&(i.store=(0,o.createReduxStore)(e,n),(0,o.register)(i.store))}}const c=i},2279:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});const o="jetpack-connection"},4293:(e,n,t)=>{"use strict";t.d(n,{a:()=>p.A});var o=t(7999),i=t(3935),c=t(2494),r=t(5051),s=t(8019),a=t(2676),l=t(8734),p=t(2279);const d=window.JP_CONNECTION_INITIAL_STATE||(0,o.getScriptData)()?.connection;d||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),l.A.mayBeInit(p.A,{__experimentalUseThunks:!0,reducer:r.A,actions:i.Ay,selectors:a.A,resolvers:s.A,controls:c.A,initialState:d||{}})},2365:(e,n,t)=>{"use strict";e.exports=t.p+"images/disconnect-confirm-dc9fe8f5c68cfd1320e0.jpg"},9362:(e,n,t)=>{"use strict";e.exports=t.p+"images/disconnect-thanks-5873bfac56a9bd7322cd.jpg"},9074:e=>{"use strict";e.exports={consumer_slug:"connection_package"}},7999:e=>{"use strict";e.exports=window.JetpackScriptDataModule},1609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},6427:e=>{"use strict";e.exports=window.wp.components},9491:e=>{"use strict";e.exports=window.wp.compose},7143:e=>{"use strict";e.exports=window.wp.data},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives},3832:e=>{"use strict";e.exports=window.wp.url},8579:e=>{function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";function o(e){var n,t,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var c=e.length;for(n=0;ni});const i=function(){for(var e,n,t=0,i="",c=arguments.length;t{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;t.g.importScripts&&(e=t.g.location+"");var n=t.g.document;if(!e&&n&&(n.currentScript&&"SCRIPT"===n.currentScript.tagName.toUpperCase()&&(e=n.currentScript.src),!e)){var o=n.getElementsByTagName("script");if(o.length)for(var i=o.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=o[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e})();var o={};return(()=>{"use strict";t.r(o),t.d(o,{CONNECTION_STORE_ID:()=>e.Hx,ConnectButton:()=>e.pK,ConnectScreen:()=>e.F0,ConnectScreenLayout:()=>e.Jl,ConnectScreenRequiredPlan:()=>e.nM,ConnectUser:()=>e.mX,ConnectionError:()=>e.Rc,ConnectionErrorNotice:()=>e.JC,DisconnectCard:()=>e.Ni,DisconnectDialog:()=>e.bo,InPlaceConnection:()=>e.xW,ManageConnectionDialog:()=>e.AY,getCalypsoOrigin:()=>e.ag,thirdPartyCookiesFallbackHelper:()=>e.d1,useConnection:()=>e.w5,useConnectionErrorNotice:()=>e.Sx,useProductCheckoutWorkflow:()=>e.cS,useRestoreConnection:()=>e.Ob});var e=t(8980)})(),o})())); \ No newline at end of file diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.asset.php b/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.asset.php index d4023be6..9ec8862d 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.asset.php +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.asset.php @@ -1 +1 @@ - array('jetpack-connection', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => 'f39ddcd4bbe429f81178'); + array('jetpack-connection', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => 'eaf5f75286c7a33c1fd8'); diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.js b/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.js index c82ffdd9..68cc82ed 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.js +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/tags-education/tags-education.js @@ -1 +1 @@ -(()=>{var e={78254:(e,t,n)=>{"use strict";n.d(t,{Ym:()=>u,t:()=>c});var r=n(10790),o=n(29491),s=n(27723),a=n(51609);const i=(0,a.createContext)(null);function c(){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,a.useContext)(i),t=!!e,[n,r]=(0,a.useState)(c());return(0,a.useEffect)((()=>{if(!t)return r(c()),s.subscribe((()=>{r(c())}))}),[t]),e||n||"undefined"!=typeof window&&window._currentUserLocale||"en"}(0,o.createHigherOrderComponent)((e=>t=>{const n={...t,locale:u()};return(0,r.jsx)(e,{...n})}),"withLocale")},57711:(e,t,n)=>{"use strict";n.d(t,{BS:()=>p,Cx:()=>o,K8:()=>a,S9:()=>s,Sc:()=>r,Sj:()=>u,Ws:()=>c,_J:()=>d,lW:()=>l,mt:()=>i,rh:()=>m});const r=["en","ja","es","pt","fr","pt-br"],o=["en","pt-br","de","es","fr","it"],s=["en","fr","de","es"],a=["en","fr","de","es"],i=["en","es"],c=["ar","de","el","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"],u={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},d=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],p=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["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,n)=>{"use strict";n.d(t,{rm:()=>g});var r=n(10790),o=n(29491),s=n(51609),a=n(78254),i=n(57711);const c="http://__domain__.invalid";const u=(e,t=[])=>(n,r)=>(t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${i.Sj[r]||r}.${e}`),n),d=(e,t=[],n=null)=>(r,o)=>(r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(o)&&"en"!==o&&(r.pathname=o+r.pathname),r),p=(e=[],t=null,n)=>(r,o)=>"object"==typeof t&&t instanceof RegExp&&!t.test(r.pathname)?r:e.includes(o)&&"en"!==o?("prefix"===n?r.pathname=o+r.pathname:"suffix"===n&&(r.pathname.endsWith("/")?r.pathname+=o+"/":r.pathname+="/"+o),r):r,l=(e=[],t=null)=>(n,r)=>p(e,t,"prefix")(n,r),m=(e=[],t=null)=>(n,r)=>p(e,t,"suffix")(n,r),w={"wordpress.com/support/":l(i._J),"wordpress.com/forums/":l(i.BS),"wordpress.com/blog/":l(i.Sc,/^\/blog\/?$/),"wordpress.com/go/":(e,t)=>["/go/","/go"].includes(e.pathname)||"es"===t?l(i.Cx)(e,t):e,"wordpress.com/pricing/":l(i.Ws),"wordpress.com/tos/":l(i.lW),"wordpress.com/wp-admin/":u("wordpress.com",i.lW),"wordpress.com/wp-login.php":u("wordpress.com",i.lW),"jetpack.com":l(i.rh),"cloud.jetpack.com":l(i.rh),"en.support.wordpress.com":d("/support",i._J),"en.blog.wordpress.com":d("/blog",i.Sc,/^\/$/),"apps.wordpress.com":l(i.lW),"en.forums.wordpress.com":d("/forums",i.BS),"automattic.com/privacy/":l(i.S9),"automattic.com/cookies/":l(i.K8),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),l(i._J)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:l(i.lW)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:l(i.lW)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:l(i.lW)(e,t),"wordpress.com/plugins/":(e,t,n)=>n?e:l(i.lW)(e,t),"wordpress.com/log-in/":(e,t,n)=>n?e:m(i.lW)(e,t),"wordpress.com/start/":(e,t,n)=>n?e:m(i.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(i.mt)(e,t),"wordpress.com/plans/":(e,t,n)=>n||"/plans/"!==e.pathname?e:l(i.Ws)(e,t),"wordpress.com/setup/":(e,t,n)=>n?e:m(i.lW)(e,t)};function f(e){try{return new URL(String(e),c).pathname.endsWith("/")}catch(e){return!1}}function g(e,t=function(){return(0,a.t)()??"en"}(),n=!0,r=!1){let o;try{o=new URL(String(e),c)}catch(t){return e}if(o.origin===c)return e;o.protocol="https:",o.pathname.endsWith(".php")||(o.pathname=(o.pathname+"/").replace(/\/+$/,"/"));const s=o.pathname.substr(0,1+o.pathname.indexOf("/",1));if("en.wordpress.com"===o.host&&(o.host="wordpress.com"),"/"+t+"/"===s)return e;const i=[o.host,o.host+s,o.host+o.pathname];for(let s=i.length-1;s>=0;s--)if(i[s]in w){const a=w[i[s]](o,t,n).href;if(!r)return a;try{const t=new URL(a);return f(e)||(t.pathname=t.pathname.replace(/\/+$/,"")),t.href}catch{return a}}return e}function h(){const e=(0,a.Ym)();return(0,s.useCallback)(((t,n,r,o)=>g(t,n||e,r,o)),[e])}(0,o.createHigherOrderComponent)((e=>t=>{const n={...t,localizeUrl:h()};return(0,r.jsx)(e,{...n})}),"withLocalizeUrl")},46941:(e,t,n)=>{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 n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},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=n(53212)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},53212:(e,t,n)=>{e.exports=function(e){function t(e){let n,o,s,a=null;function i(...e){if(!i.enabled)return;const r=i,o=Number(new Date),s=o-(n||o);r.diff=s,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";a++;const s=t.formatters[o];if("function"==typeof s){const t=e[a];n=s.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,s=t.enabled(e)),s),set:e=>{a=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(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(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,r=60*n,o=24*r,s=7*o,a=365.25*o;function i(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^(-?(?:\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(!i)return;var c=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;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"===u&&isFinite(e))return c.long?function(e){var s=Math.abs(e);if(s>=o)return i(e,s,o,"day");if(s>=r)return i(e,s,r,"hour");if(s>=n)return i(e,s,n,"minute");if(s>=t)return i(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=o)return Math.round(e/o)+"d";if(s>=r)return Math.round(e/r)+"h";if(s>=n)return Math.round(e/n)+"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))}},90372:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(46941);const o=n.n(r)()("dops:analytics");let s,a;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const i={initialize:function(e,t,n){i.setUser(e,t),i.setSuperProps(n),i.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){a={ID:e,username:t}},setSuperProps:function(e){s=e},assignSuperProps:function(e){s=Object.assign(s||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Built stat "%s" in group "%s"',t,e);return n}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){i.tracks.recordPageView(e),i.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,o,s,a){i.ga.recordPurchase(e,t,n,r,o,s,a)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(s&&(o("- Super Props: %o",s),t=Object.assign(t,s)),o('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):o('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};i.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){i.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){o("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};i.ga.initialized||(a&&(e={userId:"u-"+a.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),i.ga.initialized=!0)},recordPageView:function(e,t){i.ga.initialize(),o("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,n,r){i.ga.initialize();let s="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(s+=" [Option Label: "+n+"]"),void 0!==r&&(s+=" [Option Value: "+r+"]"),o(s),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,o,s,a){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:a}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:o,quantity:s}),window.ga("ecommerce:send")}},identifyUser:function(){a&&window._tkq.push(["identifyUser",a.ID,a.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=i},85985:(e,t,n)=>{"use strict";n.d(t,{st:()=>r.A});n(82034),n(65595),n(53265);var r=n(73489);n(76923),n(15877),n(30335),n(88290)},15877:(e,t,n)=>{"use strict";n(51609)},30335:(e,t,n)=>{"use strict";n(86087)},73489:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(90372),o=n(39384),s=n(86087);const{tracks:a}=r.A,{recordEvent:i}=a,c=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:n="page_view",pageViewEventProperties:c={}}={})=>{const[u,d]=(0,s.useState)(!1),{isUserConnected:p,isRegistered:l,userConnectionData:m={}}=(0,o.useConnection)(),{wpcomUser:{login:w,ID:f}={},blogId:g}=m.currentUser||{},h=(0,s.useCallback)((async(e,t={})=>{p&&f&&w&&i(e,t)}),[p,f,w]);return(0,s.useEffect)((()=>{p&&f&&w&&g&&r.A.initialize(f,w,{blog_id:g})}),[g,f,w,p]),(0,s.useEffect)((()=>{const r=e?`${t}_${e}_${n}`:null;l&&r&&(u||(h(r,c),d(!0)))}),[u,t,e,n,l,c,h]),{recordEvent:h,tracks:a}}},76923:(e,t,n)=>{"use strict";n(47143),n(86087),n(88290)},27105:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,E9:()=>d});var r=n(47143),o=n(62634),s=n(94478),a=n(88290);const i="SET_JETPACK_MODULES";function c(e){return d({isLoading:e})}function u(e,t){return{type:"SET_MODULE_UPDATING",name:e,isUpdating:t}}function d(e){return{type:i,options:e}}const p={updateJetpackModuleStatus:function*(e){try{yield u(e.name,!0),yield(0,s.sB)(e);const t=yield(0,s.wz)();return yield d({data:t}),!0}catch(e){const t=(0,r.select)(a.F).getJetpackModules();return yield d(t),!1}finally{yield u(e.name,!1)}},setJetpackModules:d,fetchModules:function*(){if((0,o.Sy)())return!0;try{yield c(!0);const e=yield(0,s.wz)();return yield d({data:e}),!0}catch(e){const t=(0,r.select)(a.F).getJetpackModules();return yield d(t),!1}finally{yield c(!1)}}}},94478:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,sB:()=>c,wz:()=>i});var r=n(1455),o=n.n(r);const s="FETCH_JETPACK_MODULES",a="UPDATE_JETPACK_MODULE_STATUS",i=()=>({type:s}),c=e=>({type:a,settings:e}),u={[s]:function(){return o()({path:"/jetpack/v4/module/all",method:"GET"})},[a]:function({settings:e}){return o()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},88290:(e,t,n)=>{"use strict";n.d(t,{F:()=>u});var r=n(47143),o=n(27105),s=n(94478),a=n(38862),i=n(62701),c=n(31640);const u="jetpack-modules",d=(0,r.createReduxStore)(u,{reducer:a.A,actions:o.Ay,controls:s.Ay,resolvers:i.A,selectors:c.A});(0,r.register)(d);const p=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==p&&(0,r.dispatch)(u).setJetpackModules({data:{...p}})},38862:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r={isLoading:!1,isUpdating:{},data:{}},o=(e=r,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,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(27105),o=n(94478);const s={getJetpackModules:function*(){try{const e=yield(0,o.wz)();if(e)return(0,r.E9)({data:e})}catch(e){console.error(e)}}}},31640:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(62634);const o={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,r.Sy)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},53265:(e,t,n)=>{"use strict";var r=n(27723);n(93832),n(66087);const __=r.__;__("Upgrade your plan to use video covers","jetpack-mu-wpcom"),__("Upgrade your plan to upload audio","jetpack-mu-wpcom")},82034:(e,t,n)=>{"use strict";n(92279)},62634:(e,t,n)=>{"use strict";function r(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function o(){return"simple"===r()}n.d(t,{Sy:()=>o})},65595:(e,t,n)=>{"use strict";n(96072),n(29491)},39384:e=>{"use strict";e.exports=window.JetpackConnection},51609:e=>{"use strict";e.exports=window.React},10790:e=>{"use strict";e.exports=window.ReactJSXRuntime},66087:e=>{"use strict";e.exports=window.lodash},1455:e=>{"use strict";e.exports=window.wp.apiFetch},56427:e=>{"use strict";e.exports=window.wp.components},29491:e=>{"use strict";e.exports=window.wp.compose},47143:e=>{"use strict";e.exports=window.wp.data},86087:e=>{"use strict";e.exports=window.wp.element},52619:e=>{"use strict";e.exports=window.wp.hooks},27723:e=>{"use strict";e.exports=window.wp.i18n},92279:e=>{"use strict";e.exports=window.wp.plugins},93832:e=>{"use strict";e.exports=window.wp.url},96072:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(14437),t=n(85985),r=n(56427),o=n(29491),s=n(52619);const a=(0,o.createHigherOrderComponent)((n=>o=>{const{tracks:s}=(0,t.st)();return"post_tag"===o.slug&&window.wpcomTagsEducation?React.createElement(React.Fragment,null,React.createElement(n,o),React.createElement(r.ExternalLink,{href:(0,e.rm)("https://wordpress.com/support/posts/tags/"),onClick:()=>{s.recordEvent("jetpack_mu_wpcom_tags_education_link_click")}},window.wpcomTagsEducation.actionText)):React.createElement(n,o)}),"addTagsEducationLink");(0,s.addFilter)("editor.PostTaxonomyType","jetpack-mu-wpcom/add-tags-education-link",a)})()})(); \ No newline at end of file +(()=>{var e={78254:(e,t,n)=>{"use strict";n.d(t,{Ym:()=>u,t:()=>c});var r=n(10790),o=n(29491),s=n(27723),a=n(51609);const i=(0,a.createContext)(null);function c(){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,a.useContext)(i),t=!!e,[n,r]=(0,a.useState)(c());return(0,a.useEffect)((()=>{if(!t)return r(c()),s.subscribe((()=>{r(c())}))}),[t]),e||n||"undefined"!=typeof window&&window._currentUserLocale||"en"}(0,o.createHigherOrderComponent)((e=>t=>{const n={...t,locale:u()};return(0,r.jsx)(e,{...n})}),"withLocale")},57711:(e,t,n)=>{"use strict";n.d(t,{BS:()=>p,Cx:()=>o,K8:()=>a,S9:()=>s,Sc:()=>r,Sj:()=>u,Ws:()=>c,_J:()=>d,lW:()=>l,mt:()=>i,rh:()=>m});const r=["en","ja","es","pt","fr","pt-br"],o=["en","pt-br","de","es","fr","it"],s=["en","fr","de","es"],a=["en","fr","de","es"],i=["en","es"],c=["ar","de","el","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"],u={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},d=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],p=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["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,n)=>{"use strict";n.d(t,{rm:()=>g});var r=n(10790),o=n(29491),s=n(51609),a=n(78254),i=n(57711);const c="http://__domain__.invalid";const u=(e,t=[])=>(n,r)=>(t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${i.Sj[r]||r}.${e}`),n),d=(e,t=[],n=null)=>(r,o)=>(r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(o)&&"en"!==o&&(r.pathname=o+r.pathname),r),p=(e=[],t=null,n)=>(r,o)=>"object"==typeof t&&t instanceof RegExp&&!t.test(r.pathname)?r:e.includes(o)&&"en"!==o?("prefix"===n?r.pathname=o+r.pathname:"suffix"===n&&(r.pathname.endsWith("/")?r.pathname+=o+"/":r.pathname+="/"+o),r):r,l=(e=[],t=null)=>(n,r)=>p(e,t,"prefix")(n,r),m=(e=[],t=null)=>(n,r)=>p(e,t,"suffix")(n,r),w={"wordpress.com/support/":l(i._J),"wordpress.com/forums/":l(i.BS),"wordpress.com/blog/":l(i.Sc,/^\/blog\/?$/),"wordpress.com/go/":(e,t)=>["/go/","/go"].includes(e.pathname)||"es"===t?l(i.Cx)(e,t):e,"wordpress.com/pricing/":l(i.Ws),"wordpress.com/tos/":l(i.lW),"wordpress.com/wp-admin/":u("wordpress.com",i.lW),"wordpress.com/wp-login.php":u("wordpress.com",i.lW),"jetpack.com":l(i.rh),"cloud.jetpack.com":l(i.rh),"en.support.wordpress.com":d("/support",i._J),"en.blog.wordpress.com":d("/blog",i.Sc,/^\/$/),"apps.wordpress.com":l(i.lW),"en.forums.wordpress.com":d("/forums",i.BS),"automattic.com/privacy/":l(i.S9),"automattic.com/cookies/":l(i.K8),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),l(i._J)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:l(i.lW)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:l(i.lW)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:l(i.lW)(e,t),"wordpress.com/plugins/":(e,t,n)=>n?e:l(i.lW)(e,t),"wordpress.com/log-in/":(e,t,n)=>n?e:m(i.lW)(e,t),"wordpress.com/start/":(e,t,n)=>n?e:m(i.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(i.mt)(e,t),"wordpress.com/plans/":(e,t,n)=>n||"/plans/"!==e.pathname?e:l(i.Ws)(e,t),"wordpress.com/setup/":(e,t,n)=>n?e:m(i.lW)(e,t)};function f(e){try{return new URL(String(e),c).pathname.endsWith("/")}catch(e){return!1}}function g(e,t=function(){return(0,a.t)()??"en"}(),n=!0,r=!1){let o;try{o=new URL(String(e),c)}catch(t){return e}if(o.origin===c)return e;o.protocol="https:",o.pathname.endsWith(".php")||(o.pathname=(o.pathname+"/").replace(/\/+$/,"/"));const s=o.pathname.substr(0,1+o.pathname.indexOf("/",1));if("en.wordpress.com"===o.host&&(o.host="wordpress.com"),"/"+t+"/"===s)return e;const i=[o.host,o.host+s,o.host+o.pathname];for(let s=i.length-1;s>=0;s--)if(i[s]in w){const a=w[i[s]](o,t,n).href;if(!r)return a;try{const t=new URL(a);return f(e)||(t.pathname=t.pathname.replace(/\/+$/,"")),t.href}catch{return a}}return e}function h(){const e=(0,a.Ym)();return(0,s.useCallback)(((t,n,r,o)=>g(t,n||e,r,o)),[e])}(0,o.createHigherOrderComponent)((e=>t=>{const n={...t,localizeUrl:h()};return(0,r.jsx)(e,{...n})}),"withLocalizeUrl")},46941:(e,t,n)=>{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 n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},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=n(53212)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},53212:(e,t,n)=>{e.exports=function(e){function t(e){let n,o,s,a=null;function i(...e){if(!i.enabled)return;const r=i,o=Number(new Date),s=o-(n||o);r.diff=s,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";a++;const s=t.formatters[o];if("function"==typeof s){const t=e[a];n=s.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,s=t.enabled(e)),s),set:e=>{a=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(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(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{var t=1e3,n=60*t,r=60*n,o=24*r,s=7*o,a=365.25*o;function i(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^(-?(?:\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(!i)return;var c=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;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"===u&&isFinite(e))return c.long?function(e){var s=Math.abs(e);if(s>=o)return i(e,s,o,"day");if(s>=r)return i(e,s,r,"hour");if(s>=n)return i(e,s,n,"minute");if(s>=t)return i(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=o)return Math.round(e/o)+"d";if(s>=r)return Math.round(e/r)+"h";if(s>=n)return Math.round(e/n)+"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))}},90372:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(46941);const o=n.n(r)()("dops:analytics");let s,a;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const i={initialize:function(e,t,n){i.setUser(e,t),i.setSuperProps(n),i.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){a={ID:e,username:t}},setSuperProps:function(e){s=e},assignSuperProps:function(e){s=Object.assign(s||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Built stat "%s" in group "%s"',t,e);return n}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){i.tracks.recordPageView(e),i.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,o,s,a){i.ga.recordPurchase(e,t,n,r,o,s,a)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(s&&(o("- Super Props: %o",s),t=Object.assign(t,s)),o('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):o('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};i.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){i.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){o("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};i.ga.initialized||(a&&(e={userId:"u-"+a.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),i.ga.initialized=!0)},recordPageView:function(e,t){i.ga.initialize(),o("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,n,r){i.ga.initialize();let s="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(s+=" [Option Label: "+n+"]"),void 0!==r&&(s+=" [Option Value: "+r+"]"),o(s),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,o,s,a){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:a}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:o,quantity:s}),window.ga("ecommerce:send")}},identifyUser:function(){a&&window._tkq.push(["identifyUser",a.ID,a.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=i},85985:(e,t,n)=>{"use strict";n.d(t,{st:()=>r.A});n(82034),n(65595),n(53265);var r=n(73489);n(76923),n(15877),n(30335),n(88290)},15877:(e,t,n)=>{"use strict";n(51609)},30335:(e,t,n)=>{"use strict";n(86087)},73489:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(90372),o=n(39384),s=n(86087);const{tracks:a}=r.A,{recordEvent:i}=a,c=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:n="page_view",pageViewEventProperties:c={}}={})=>{const[u,d]=(0,s.useState)(!1),{isUserConnected:p,isRegistered:l,userConnectionData:m={}}=(0,o.useConnection)(),{wpcomUser:{login:w,ID:f}={},blogId:g}=m.currentUser||{},h=(0,s.useCallback)((async(e,t={})=>{p&&f&&w&&i(e,t)}),[p,f,w]);return(0,s.useEffect)((()=>{p&&f&&w&&g&&r.A.initialize(f,w,{blog_id:g})}),[g,f,w,p]),(0,s.useEffect)((()=>{const r=e?`${t}_${e}_${n}`:null;l&&r&&(u||(h(r,c),d(!0)))}),[u,t,e,n,l,c,h]),{recordEvent:h,tracks:a}}},76923:(e,t,n)=>{"use strict";n(47143),n(86087),n(88290)},27105:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,E9:()=>d});var r=n(47143),o=n(62634),s=n(94478),a=n(88290);const i="SET_JETPACK_MODULES";function c(e){return d({isLoading:e})}function u(e,t){return{type:"SET_MODULE_UPDATING",name:e,isUpdating:t}}function d(e){return{type:i,options:e}}const p={updateJetpackModuleStatus:function*(e){try{yield u(e.name,!0),yield(0,s.sB)(e);const t=yield(0,s.wz)();return yield d({data:t}),!0}catch{const e=(0,r.select)(a.F).getJetpackModules();return yield d(e),!1}finally{yield u(e.name,!1)}},setJetpackModules:d,fetchModules:function*(){if((0,o.Sy)())return!0;try{yield c(!0);const e=yield(0,s.wz)();return yield d({data:e}),!0}catch{const e=(0,r.select)(a.F).getJetpackModules();return yield d(e),!1}finally{yield c(!1)}}}},94478:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,sB:()=>c,wz:()=>i});var r=n(1455),o=n.n(r);const s="FETCH_JETPACK_MODULES",a="UPDATE_JETPACK_MODULE_STATUS",i=()=>({type:s}),c=e=>({type:a,settings:e}),u={[s]:function(){return o()({path:"/jetpack/v4/module/all",method:"GET"})},[a]:function({settings:e}){return o()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},88290:(e,t,n)=>{"use strict";n.d(t,{F:()=>u});var r=n(47143),o=n(27105),s=n(94478),a=n(38862),i=n(62701),c=n(31640);const u="jetpack-modules",d=(0,r.createReduxStore)(u,{reducer:a.A,actions:o.Ay,controls:s.Ay,resolvers:i.A,selectors:c.A});(0,r.register)(d);const p=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==p&&(0,r.dispatch)(u).setJetpackModules({data:{...p}})},38862:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r={isLoading:!1,isUpdating:{},data:{}},o=(e=r,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,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(27105),o=n(94478);const s={getJetpackModules:function*(){try{const e=yield(0,o.wz)();if(e)return(0,r.E9)({data:e})}catch(e){console.error(e)}}}},31640:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(62634);const o={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,r.Sy)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},53265:(e,t,n)=>{"use strict";var r=n(27723);n(93832),n(66087);const __=r.__;__("Upgrade your plan to use video covers","jetpack-mu-wpcom"),__("Upgrade your plan to upload audio","jetpack-mu-wpcom")},82034:(e,t,n)=>{"use strict";n(92279)},62634:(e,t,n)=>{"use strict";function r(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function o(){return"simple"===r()}n.d(t,{Sy:()=>o})},65595:(e,t,n)=>{"use strict";n(96072),n(29491)},39384:e=>{"use strict";e.exports=window.JetpackConnection},51609:e=>{"use strict";e.exports=window.React},10790:e=>{"use strict";e.exports=window.ReactJSXRuntime},66087:e=>{"use strict";e.exports=window.lodash},1455:e=>{"use strict";e.exports=window.wp.apiFetch},56427:e=>{"use strict";e.exports=window.wp.components},29491:e=>{"use strict";e.exports=window.wp.compose},47143:e=>{"use strict";e.exports=window.wp.data},86087:e=>{"use strict";e.exports=window.wp.element},52619:e=>{"use strict";e.exports=window.wp.hooks},27723:e=>{"use strict";e.exports=window.wp.i18n},92279:e=>{"use strict";e.exports=window.wp.plugins},93832:e=>{"use strict";e.exports=window.wp.url},96072:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(14437),t=n(85985),r=n(56427),o=n(29491),s=n(52619);const a=(0,o.createHigherOrderComponent)((n=>o=>{const{tracks:s}=(0,t.st)();return"post_tag"===o.slug&&window.wpcomTagsEducation?React.createElement(React.Fragment,null,React.createElement(n,o),React.createElement(r.ExternalLink,{href:(0,e.rm)("https://wordpress.com/support/posts/tags/"),onClick:()=>{s.recordEvent("jetpack_mu_wpcom_tags_education_link_click")}},window.wpcomTagsEducation.actionText)):React.createElement(n,o)}),"addTagsEducationLink");(0,s.addFilter)("editor.PostTaxonomyType","jetpack-mu-wpcom/add-tags-education-link",a)})()})(); \ No newline at end of file diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.asset.php b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.asset.php index c34febd4..c52fa796 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.asset.php +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.asset.php @@ -1 +1 @@ - array('jetpack-connection', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => 'd3087fa872d63e03318d'); + array('jetpack-connection', 'lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-url'), 'version' => '694203247b1de716c0a6'); diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.js b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.js index 8c44d0c2..c5fec8d0 100644 --- a/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.js +++ b/vendor/automattic/jetpack-mu-wpcom/src/build/wpcom-block-description-links/wpcom-block-description-links.js @@ -1 +1 @@ -(()=>{var e={78254:(e,t,o)=>{"use strict";o.d(t,{Ym:()=>d,t:()=>i});var s=o(10790),r=o(29491),n=o(27723),p=o(51609);const c=(0,p.createContext)(null);function i(){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=n.getLocaleData()||{};return e[""]?.lang||e[""]?.language||""}())}function d(){const e=(0,p.useContext)(c),t=!!e,[o,s]=(0,p.useState)(i());return(0,p.useEffect)((()=>{if(!t)return s(i()),n.subscribe((()=>{s(i())}))}),[t]),e||o||"undefined"!=typeof window&&window._currentUserLocale||"en"}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,locale:d()};return(0,s.jsx)(e,{...o})}),"withLocale")},57711:(e,t,o)=>{"use strict";o.d(t,{BS:()=>a,Cx:()=>r,K8:()=>p,S9:()=>n,Sc:()=>s,Sj:()=>d,Ws:()=>i,_J:()=>l,lW:()=>u,mt:()=>c,rh:()=>m});const s=["en","ja","es","pt","fr","pt-br"],r=["en","pt-br","de","es","fr","it"],n=["en","fr","de","es"],p=["en","fr","de","es"],c=["en","es"],i=["ar","de","el","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"],d={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},l=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],a=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],u=["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 s=o(10790),r=o(29491),n=o(51609),p=o(78254),c=o(57711);const i="http://__domain__.invalid";const d=(e,t=[])=>(o,s)=>(t.includes(s)&&"en"!==s&&o.pathname.substr(0,s.length+2)!=="/"+s+"/"&&(o.host=`${c.Sj[s]||s}.${e}`),o),l=(e,t=[],o=null)=>(s,r)=>(s.host="wordpress.com","object"==typeof o&&o instanceof RegExp&&!o.test(s.pathname)&&(t=[]),s.pathname=e+s.pathname,t.includes(r)&&"en"!==r&&(s.pathname=r+s.pathname),s),a=(e=[],t=null,o)=>(s,r)=>"object"==typeof t&&t instanceof RegExp&&!t.test(s.pathname)?s:e.includes(r)&&"en"!==r?("prefix"===o?s.pathname=r+s.pathname:"suffix"===o&&(s.pathname.endsWith("/")?s.pathname+=r+"/":s.pathname+="/"+r),s):s,u=(e=[],t=null)=>(o,s)=>a(e,t,"prefix")(o,s),m=(e=[],t=null)=>(o,s)=>a(e,t,"suffix")(o,s),k={"wordpress.com/support/":u(c._J),"wordpress.com/forums/":u(c.BS),"wordpress.com/blog/":u(c.Sc,/^\/blog\/?$/),"wordpress.com/go/":(e,t)=>["/go/","/go"].includes(e.pathname)||"es"===t?u(c.Cx)(e,t):e,"wordpress.com/pricing/":u(c.Ws),"wordpress.com/tos/":u(c.lW),"wordpress.com/wp-admin/":d("wordpress.com",c.lW),"wordpress.com/wp-login.php":d("wordpress.com",c.lW),"jetpack.com":u(c.rh),"cloud.jetpack.com":u(c.rh),"en.support.wordpress.com":l("/support",c._J),"en.blog.wordpress.com":l("/blog",c.Sc,/^\/$/),"apps.wordpress.com":u(c.lW),"en.forums.wordpress.com":l("/forums",c.BS),"automattic.com/privacy/":u(c.S9),"automattic.com/cookies/":u(c.K8),"wordpress.com/help/contact/":(e,t,o)=>o?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),u(c._J)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:u(c.lW)(e,t),"wordpress.com/theme/":(e,t,o)=>o?e:u(c.lW)(e,t),"wordpress.com/themes/":(e,t,o)=>o?e:u(c.lW)(e,t),"wordpress.com/plugins/":(e,t,o)=>o?e:u(c.lW)(e,t),"wordpress.com/log-in/":(e,t,o)=>o?e:m(c.lW)(e,t),"wordpress.com/start/":(e,t,o)=>o?e:m(c.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(c.mt)(e,t),"wordpress.com/plans/":(e,t,o)=>o||"/plans/"!==e.pathname?e:u(c.Ws)(e,t),"wordpress.com/setup/":(e,t,o)=>o?e:m(c.lW)(e,t)};function w(e){try{return new URL(String(e),i).pathname.endsWith("/")}catch(e){return!1}}function h(e,t=function(){return(0,p.t)()??"en"}(),o=!0,s=!1){let r;try{r=new URL(String(e),i)}catch(t){return e}if(r.origin===i)return e;r.protocol="https:",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const n=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===n)return e;const c=[r.host,r.host+n,r.host+r.pathname];for(let n=c.length-1;n>=0;n--)if(c[n]in k){const p=k[c[n]](r,t,o).href;if(!s)return p;try{const t=new URL(p);return w(e)||(t.pathname=t.pathname.replace(/\/+$/,"")),t.href}catch{return p}}return e}function b(){const e=(0,p.Ym)();return(0,n.useCallback)(((t,o,s,r)=>h(t,o||e,s,r)),[e])}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,localizeUrl:b()};return(0,s.jsx)(e,{...o})}),"withLocalizeUrl")},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 s=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(r=s))})),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:s}=e.exports;s.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,n,p=null;function c(...e){if(!c.enabled)return;const s=c,r=Number(new Date),n=r-(o||r);s.diff=n,s.prev=o,s.curr=r,o=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let p=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((o,r)=>{if("%%"===o)return"%";p++;const n=t.formatters[r];if("function"==typeof n){const t=e[p];o=n.call(s,t),e.splice(p,1),p--}return o})),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=s,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==p?p:(r!==t.namespaces&&(r=t.namespaces,n=t.enabled(e)),n),set:e=>{p=e}}),"function"==typeof t.init&&t.init(c),c}function s(e,o){const s=t(this.namespace+(void 0===o?":":o)+e);return s.log=this.log,s}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 s=("string"==typeof e?e:"").split(/[\s,]+/),r=s.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,s=60*o,r=24*s,n=7*r,p=365.25*r;function c(e,t,o,s){var r=t>=1.5*o;return Math.round(e/o)+" "+s+(r?"s":"")}e.exports=function(e,i){i=i||{};var d=typeof e;if("string"===d&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\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(!c)return;var i=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*p;case"weeks":case"week":case"w":return i*n;case"days":case"day":case"d":return i*r;case"hours":case"hour":case"hrs":case"hr":case"h":return i*s;case"minutes":case"minute":case"mins":case"min":case"m":return i*o;case"seconds":case"second":case"secs":case"sec":case"s":return i*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===d&&isFinite(e))return i.long?function(e){var n=Math.abs(e);if(n>=r)return c(e,n,r,"day");if(n>=s)return c(e,n,s,"hour");if(n>=o)return c(e,n,o,"minute");if(n>=t)return c(e,n,t,"second");return e+" ms"}(e):function(e){var n=Math.abs(e);if(n>=r)return Math.round(e/r)+"d";if(n>=s)return Math.round(e/s)+"h";if(n>=o)return Math.round(e/o)+"m";if(n>=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))}},90372:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o(46941);const r=o.n(s)()("dops:analytics");let n,p;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const c={initialize:function(e,t,o){c.setUser(e,t),c.setSuperProps(o),c.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){p={ID:e,username:t}},setSuperProps:function(e){n=e},assignSuperProps:function(e){n=Object.assign(n||{},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);c.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);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+o+"&t="+Math.random())}},pageView:{record:function(e,t){c.tracks.recordPageView(e),c.ga.recordPageView(e,t)}},purchase:{record:function(e,t,o,s,r,n,p){c.ga.recordPurchase(e,t,o,s,r,n,p)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(n&&(r("- Super Props: %o",n),t=Object.assign(t,n)),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};c.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){c.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={};c.ga.initialized||(p&&(e={userId:"u-"+p.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),c.ga.initialized=!0)},recordPageView:function(e,t){c.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,s){c.ga.initialize();let n="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==o&&(n+=" [Option Label: "+o+"]"),void 0!==s&&(n+=" [Option Value: "+s+"]"),r(n),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,o,s)},recordPurchase:function(e,t,o,s,r,n,p){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:s,currency:p}),window.ga("ecommerce:addItem",{id:e,name:t,sku:o,price:r,quantity:n}),window.ga("ecommerce:send")}},identifyUser:function(){p&&window._tkq.push(["identifyUser",p.ID,p.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},i=c},85985:(e,t,o)=>{"use strict";o.d(t,{st:()=>s.A});o(82034),o(65595),o(53265);var s=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)},73489:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o(90372),r=o(39384),n=o(86087);const{tracks:p}=s.A,{recordEvent:c}=p,i=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:o="page_view",pageViewEventProperties:i={}}={})=>{const[d,l]=(0,n.useState)(!1),{isUserConnected:a,isRegistered:u,userConnectionData:m={}}=(0,r.useConnection)(),{wpcomUser:{login:k,ID:w}={},blogId:h}=m.currentUser||{},b=(0,n.useCallback)((async(e,t={})=>{a&&w&&k&&c(e,t)}),[a,w,k]);return(0,n.useEffect)((()=>{a&&w&&k&&h&&s.A.initialize(w,k,{blog_id:h})}),[h,w,k,a]),(0,n.useEffect)((()=>{const s=e?`${t}_${e}_${o}`:null;u&&s&&(d||(b(s,i),l(!0)))}),[d,t,e,o,u,i,b]),{recordEvent:b,tracks:p}}},76923:(e,t,o)=>{"use strict";o(47143),o(86087),o(88290)},27105:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>a,E9:()=>l});var s=o(47143),r=o(62634),n=o(94478),p=o(88290);const c="SET_JETPACK_MODULES";function i(e){return l({isLoading:e})}function d(e,t){return{type:"SET_MODULE_UPDATING",name:e,isUpdating:t}}function l(e){return{type:c,options:e}}const a={updateJetpackModuleStatus:function*(e){try{yield d(e.name,!0),yield(0,n.sB)(e);const t=yield(0,n.wz)();return yield l({data:t}),!0}catch(e){const t=(0,s.select)(p.F).getJetpackModules();return yield l(t),!1}finally{yield d(e.name,!1)}},setJetpackModules:l,fetchModules:function*(){if((0,r.Sy)())return!0;try{yield i(!0);const e=yield(0,n.wz)();return yield l({data:e}),!0}catch(e){const t=(0,s.select)(p.F).getJetpackModules();return yield l(t),!1}finally{yield i(!1)}}}},94478:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>d,sB:()=>i,wz:()=>c});var s=o(1455),r=o.n(s);const n="FETCH_JETPACK_MODULES",p="UPDATE_JETPACK_MODULE_STATUS",c=()=>({type:n}),i=e=>({type:p,settings:e}),d={[n]:function(){return r()({path:"/jetpack/v4/module/all",method:"GET"})},[p]: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:()=>d});var s=o(47143),r=o(27105),n=o(94478),p=o(38862),c=o(62701),i=o(31640);const d="jetpack-modules",l=(0,s.createReduxStore)(d,{reducer:p.A,actions:r.Ay,controls:n.Ay,resolvers:c.A,selectors:i.A});(0,s.register)(l);const a=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==a&&(0,s.dispatch)(d).setJetpackModules({data:{...a}})},38862:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});const s={isLoading:!1,isUpdating:{},data:{}},r=(e=s,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:()=>n});var s=o(27105),r=o(94478);const n={getJetpackModules:function*(){try{const e=yield(0,r.wz)();if(e)return(0,s.E9)({data:e})}catch(e){console.error(e)}}}},31640:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var s=o(62634);const r={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,s.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 s=o(27723);o(93832),o(66087);const __=s.__;__("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";function s(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function r(){return"simple"===s()}o.d(t,{Sy:()=>r})},65595:(e,t,o)=>{"use strict";o(96072),o(29491)},48424:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>n,UT:()=>s,V4:()=>r});const s={"core/embed":{soundcloud:{link:"https://wordpress.com/support/soundcloud-audio-player/",postId:4213},twitter:{link:"https://wordpress.com/support/wordpress-editor/blocks/twitter-block/",postId:150413},vimeo:{link:"https://wordpress.com/support/videos/vimeo/",postId:1235},youtube:{link:"https://wordpress.com/support/wordpress-editor/blocks/youtube-block/",postId:150414}}},r={"core/nextpage":{link:"https://wordpress.com/support/wordpress-editor/blocks/page-break-block/",postId:149374}},n={"core/template-part":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/template-part-block/",postId:192398},"core/site-title":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-title-block/",postId:184569},"core/site-tagline":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-tagline-block/",postId:184553},"core/site-logo":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-logo-block/",postId:184537},"core/page-list":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/page-list-block/",postId:180696},"core/loginout":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/login-out-block/",postId:184610},"core/video":{link:"https://wordpress.com/support/wordpress-editor/blocks/video-block/",postId:149045},"core/verse":{link:"https://wordpress.com/support/wordpress-editor/blocks/verse-block/",postId:149992},"core/spacer":{link:"https://wordpress.com/support/wordpress-editor/blocks/spacer-block/",postId:148996},"core/shortcode":{link:"https://wordpress.com/support/wordpress-editor/blocks/shortcode-block/",postId:149209},"core/separator":{link:"https://wordpress.com/support/wordpress-editor/blocks/separator-block/",postId:149012},"core/search":{link:"https://wordpress.com/support/wordpress-editor/blocks/search-block/",postId:187104},"core/rss":{link:"https://wordpress.com/support/wordpress-editor/blocks/rss-block/",postId:174794},"core/navigation":{link:"https://wordpress.com/support/site-editing/theme-blocks/navigation-block/",postId:162159},"core/tag-cloud":{link:"https://wordpress.com/support/wordpress-editor/blocks/tag-cloud-block/",postId:188957},"core/quote":{link:"https://wordpress.com/support/wordpress-editor/blocks/quote-block/",postId:148575},"core/pullquote":{link:"https://wordpress.com/support/wordpress-editor/blocks/pullquote-block/",postId:149344},"core/preformatted":{link:"https://wordpress.com/support/wordpress-editor/blocks/preformatted-block/",postId:149339},"core/more":{link:"https://wordpress.com/support/wordpress-editor/blocks/more-block/",postId:148614},"core/list":{link:"https://wordpress.com/support/wordpress-editor/blocks/list-block/",postId:148563},"core/latest-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/latest-posts-block/",postId:149818},"core/latest-comments":{link:"https://wordpress.com/support/wordpress-editor/blocks/latest-comments-block/",postId:149811},"core/heading":{link:"https://wordpress.com/support/wordpress-editor/blocks/heading-block/",postId:148403},"core/file":{link:"https://wordpress.com/support/wordpress-editor/blocks/file-block/",postId:148586},"core/embed":{link:"https://wordpress.com/support/wordpress-editor/blocks/embed-block/",postId:150644},"core/html":{link:"https://wordpress.com/support/wordpress-editor/blocks/custom-html-block/",postId:149059},"core/code":{link:"https://wordpress.com/support/wordpress-editor/blocks/code-block/",postId:149042},"core/freeform":{link:"https://wordpress.com/support/wordpress-editor/blocks/classic-block/",postId:149026},"core/categories":{link:"https://wordpress.com/support/wordpress-editor/blocks/categories-block/",postId:149793},"core/calendar":{link:"https://wordpress.com/support/wordpress-editor/blocks/calendar-block/",postId:171935},"core/audio":{link:"https://wordpress.com/support/wordpress-editor/blocks/audio-block/",postId:148670},"core/archives":{link:"https://wordpress.com/support/wordpress-editor/blocks/archives-block/",postId:149225},"core/query":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/query-loop-block/",postId:184188},"core/media-text":{link:"https://wordpress.com/support/wordpress-editor/blocks/media-text-block/",postId:151100},"core/table":{link:"https://wordpress.com/support/wordpress-editor/blocks/table-block/",postId:149666},"core/social-links":{link:"https://wordpress.com/support/wordpress-editor/blocks/social-links-block/",postId:159466},"core/columns":{link:"https://wordpress.com/support/wordpress-editor/blocks/columns-block/",postId:149073},"core/image":{link:"https://wordpress.com/support/wordpress-editor/blocks/image-block/",postId:148378},"core/cover":{link:"https://wordpress.com/support/wordpress-editor/blocks/cover-block/",postId:148675},"core/buttons":{link:"https://wordpress.com/support/wordpress-editor/blocks/buttons-block/",postId:162116},"core/gallery":{link:"https://wordpress.com/support/wordpress-editor/blocks/gallery-block/",postId:148667},"core/post-content":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/post-content-block/",postId:216265},"core/table-of-contents":{link:"https://wordpress.com/support/wordpress-editor/table-of-contents-block/",postId:201571},"core/comments":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/comments-block/",postId:218903},"core/post-time-to-read":{link:"https://wordpress.com/support/site-editing/theme-blocks/time-to-read-block",postId:243241},"syntaxhighlighter/code":{link:"https://wordpress.com/support/wordpress-editor/blocks/syntax-highlighter-code-block/",postId:4743},"crowdsignal-forms/vote":{link:"https://wordpress.com/support/wordpress-editor/blocks/vote-block/",postId:174824},"crowdsignal-forms/poll":{link:"https://wordpress.com/support/wordpress-editor/blocks/poll-block/",postId:170183},"crowdsignal-forms/nps":{link:"https://wordpress.com/support/wordpress-editor/blocks/measure-nps-block/",postId:182393},"crowdsignal-forms/feedback":{link:"https://wordpress.com/support/wordpress-editor/blocks/feedback-button-block/",postId:183578},"a8c/posts-carousel":{link:"https://wordpress.com/support/wordpress-editor/blocks/posts-carousel-block/",postId:166417},"premium-content/container":{link:"https://wordpress.com/support/wordpress-editor/blocks/premium-content-block/",postId:243475},"a8c/blog-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/blog-posts-block/",postId:158419},"jetpack/send-a-message":{link:"https://wordpress.com/support/wordpress-editor/blocks/whatsapp-button-block/",postId:169728},"jetpack/blogroll":{link:"https://wordpress.com/support/wordpress-editor/blocks/blogroll-block/",postId:291406},"jetpack/timeline":{link:"https://wordpress.com/support/wordpress-editor/blocks/timeline-block/",postId:158453},"jetpack/story":{link:"https://wordpress.com/support/wordpress-editor/blocks/story-block/",postId:176320},"jetpack/revue":{link:"https://wordpress.com/support/wordpress-editor/blocks/revue-block/",postId:67810},"jetpack/rating-star":{link:"https://wordpress.com/support/wordpress-editor/blocks/ratings-block/",postId:158224},"jetpack/related-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/related-posts-block/",postId:1545},"jetpack/repeat-visitor":{link:"https://wordpress.com/support/wordpress-editor/blocks/repeat-visitor-block/",postId:154471},"jetpack/podcast-player":{link:"https://wordpress.com/support/wordpress-editor/blocks/podcast-player-block/",postId:163160},"jetpack/opentable":{link:"https://wordpress.com/support/wordpress-editor/blocks/opentable-block/",postId:162208},"jetpack/map":{link:"https://wordpress.com/support/wordpress-editor/blocks/map-block/",postId:149684},"jetpack/image-compare":{link:"https://wordpress.com/support/wordpress-editor/blocks/image-compare-block/",postId:168169},"jetpack/gif":{link:"https://wordpress.com/support/wordpress-editor/blocks/gif-block/",postId:174810},"jetpack/event-countdown":{link:"https://wordpress.com/support/wordpress-editor/blocks/event-countdown-block/",postId:159246},"jetpack/donations":{link:"https://wordpress.com/support/wordpress-editor/blocks/donations/",postId:171110},"jetpack/calendly":{link:"https://wordpress.com/support/wordpress-editor/blocks/calendly-block/",postId:162199},"jetpack/business-hours":{link:"https://wordpress.com/support/wordpress-editor/blocks/business-hours-block/",postId:173136},"jetpack/wordads":{link:"https://wordpress.com/support/wordpress-editor/blocks/ad-block/",postId:190916},"jetpack/payments-intro":{link:"https://wordpress.com/support/wordpress-editor/blocks/payments/",postId:169123},"jetpack/contact-info":{link:"https://wordpress.com/support/wordpress-editor/blocks/contact-info-block/",postId:186162},"jetpack/tiled-gallery":{link:"https://wordpress.com/support/wordpress-editor/blocks/tiled-gallery-block/",postId:150746},"jetpack/slideshow":{link:"https://wordpress.com/support/wordpress-editor/blocks/slideshow-block/",postId:157055},"jetpack/subscriptions":{link:"https://wordpress.com/support/wordpress-editor/blocks/subscription-form-block/",postId:170164},"jetpack/contact-form":{link:"https://wordpress.com/support/wordpress-editor/blocks/form-block/",postId:168307},"jetpack/layout-grid":{link:"https://wordpress.com/support/wordpress-editor/blocks/layout-grid-block/",postId:160172},"jetpack/mailchimp":{link:"https://wordpress.com/support/wordpress-editor/blocks/mailchimp-block/",postId:152657},"jetpack/paywall":{link:"https://wordpress.com/support/paid-newsletters/#use-the-paywall-block",postId:168381},"jetpack/sharing-buttons":{link:"https://wordpress.com/support/wordpress-editor/blocks/sharing-buttons-block/",postId:330003},"jetpack/like":{link:"https://wordpress.com/support/likes/",postId:7294},"jetpack/subscriber-login":{link:"https://wordpress.com/support/wordpress-editor/blocks/subscriber-login-block/",postId:380451},"jetpack/blog-stats":{link:"https://wordpress.com/support/wordpress-editor/blocks/blog-stats-block/",postId:382010},"jetpack/top-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/top-posts-pages-block/",postId:381536},"jetpack/goodreads":{link:"https://wordpress.com/support/wordpress-editor/blocks/goodreads-block/",postId:382051}}},19576:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var s=o(14437),r=o(85985),n=o(56427),p=o(47143),c=o(27723),i=o(51609),d=o.n(i);const __=c.__;function l({children:e,title:t,url:o,postId:c}){const[l,a]=(0,i.useState)(),{tracks:u}=(0,r.st)(),m=(0,p.useDispatch)("automattic/help-center"),k=m?.setShowHelpCenter,w=m?.setShowSupportDoc;return l&&!l?.closest(".block-editor-block-inspector")?e:d().createElement(d().Fragment,null,e,d().createElement("br",null),k?d().createElement(n.Button,{onClick:()=>{k(!0),w((0,s.rm)(o),c),u.recordEvent("jetpack_mu_wpcom_block_description_support_link_click",{block:t,support_link:o})},style:{marginTop:10,height:"unset"},ref:e=>l!==e&&a(e),className:"fse-inline-support-link is-compact",variant:"link"},__("Block guide","jetpack-mu-wpcom")):d().createElement(n.ExternalLink,{onClick:()=>{u.recordEvent("jetpack_mu_wpcom_block_description_support_link_click",{block:t,support_link:o})},ref:e=>l!==e&&a(e),style:{display:"block",marginTop:10,maxWidth:"fit-content"},className:"fse-inline-support-link",href:o},__("Learn more","jetpack-mu-wpcom")))}},39384:e=>{"use strict";e.exports=window.JetpackConnection},51609:e=>{"use strict";e.exports=window.React},10790:e=>{"use strict";e.exports=window.ReactJSXRuntime},66087:e=>{"use strict";e.exports=window.lodash},1455:e=>{"use strict";e.exports=window.wp.apiFetch},56427:e=>{"use strict";e.exports=window.wp.components},29491:e=>{"use strict";e.exports=window.wp.compose},47143:e=>{"use strict";e.exports=window.wp.data},86087:e=>{"use strict";e.exports=window.wp.element},52619:e=>{"use strict";e.exports=window.wp.hooks},27723:e=>{"use strict";e.exports=window.wp.i18n},92279:e=>{"use strict";e.exports=window.wp.plugins},93832:e=>{"use strict";e.exports=window.wp.url},96072:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=o(14437),t=o(86087),s=o(52619),r=o(51609),n=o.n(r),p=o(48424),c=o(19576);const i=(o,s,r,p)=>{const i=(0,e.rm)(r);return(0,t.createInterpolateElement)("",{InlineSupportLink:n().createElement(c.A,{title:String(o),url:i,postId:p},s)})},d={};(0,s.addFilter)("blocks.registerBlockType","jetpack-mu-wpcom/add-block-support-link",((e,t)=>{const o=e?.parent?.toString(),s=o&&"core/post-content"!==o?o:t;if(d[t])return e;d[t]=!0;const r=p.V4[t]?.link||p.Ay[s]?.link,n=p.V4[t]?.postId||p.Ay[s]?.postId;return r&&n&&(e.description=i(String(e.title),e.description,r,n)),p.UT[t]&&e.variations&&Array.isArray(e.variations)&&(e.variations=e.variations.map((e=>{let o=p.UT[t][e.name]?.link,s=p.UT[t][e.name]?.postId;if(o||"core/embed"!==t){if(!o)return e}else o="https://wordpress.com/support/wordpress-editor/blocks/embed-block/",s=150644;return e.description=i(e.title,e.description,o,s),e}))),e}))})()})(); \ No newline at end of file +(()=>{var e={78254:(e,t,o)=>{"use strict";o.d(t,{Ym:()=>d,t:()=>i});var s=o(10790),r=o(29491),n=o(27723),p=o(51609);const c=(0,p.createContext)(null);function i(){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=n.getLocaleData()||{};return e[""]?.lang||e[""]?.language||""}())}function d(){const e=(0,p.useContext)(c),t=!!e,[o,s]=(0,p.useState)(i());return(0,p.useEffect)((()=>{if(!t)return s(i()),n.subscribe((()=>{s(i())}))}),[t]),e||o||"undefined"!=typeof window&&window._currentUserLocale||"en"}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,locale:d()};return(0,s.jsx)(e,{...o})}),"withLocale")},57711:(e,t,o)=>{"use strict";o.d(t,{BS:()=>a,Cx:()=>r,K8:()=>p,S9:()=>n,Sc:()=>s,Sj:()=>d,Ws:()=>i,_J:()=>l,lW:()=>u,mt:()=>c,rh:()=>m});const s=["en","ja","es","pt","fr","pt-br"],r=["en","pt-br","de","es","fr","it"],n=["en","fr","de","es"],p=["en","fr","de","es"],c=["en","es"],i=["ar","de","el","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"],d={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},l=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],a=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],u=["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 s=o(10790),r=o(29491),n=o(51609),p=o(78254),c=o(57711);const i="http://__domain__.invalid";const d=(e,t=[])=>(o,s)=>(t.includes(s)&&"en"!==s&&o.pathname.substr(0,s.length+2)!=="/"+s+"/"&&(o.host=`${c.Sj[s]||s}.${e}`),o),l=(e,t=[],o=null)=>(s,r)=>(s.host="wordpress.com","object"==typeof o&&o instanceof RegExp&&!o.test(s.pathname)&&(t=[]),s.pathname=e+s.pathname,t.includes(r)&&"en"!==r&&(s.pathname=r+s.pathname),s),a=(e=[],t=null,o)=>(s,r)=>"object"==typeof t&&t instanceof RegExp&&!t.test(s.pathname)?s:e.includes(r)&&"en"!==r?("prefix"===o?s.pathname=r+s.pathname:"suffix"===o&&(s.pathname.endsWith("/")?s.pathname+=r+"/":s.pathname+="/"+r),s):s,u=(e=[],t=null)=>(o,s)=>a(e,t,"prefix")(o,s),m=(e=[],t=null)=>(o,s)=>a(e,t,"suffix")(o,s),k={"wordpress.com/support/":u(c._J),"wordpress.com/forums/":u(c.BS),"wordpress.com/blog/":u(c.Sc,/^\/blog\/?$/),"wordpress.com/go/":(e,t)=>["/go/","/go"].includes(e.pathname)||"es"===t?u(c.Cx)(e,t):e,"wordpress.com/pricing/":u(c.Ws),"wordpress.com/tos/":u(c.lW),"wordpress.com/wp-admin/":d("wordpress.com",c.lW),"wordpress.com/wp-login.php":d("wordpress.com",c.lW),"jetpack.com":u(c.rh),"cloud.jetpack.com":u(c.rh),"en.support.wordpress.com":l("/support",c._J),"en.blog.wordpress.com":l("/blog",c.Sc,/^\/$/),"apps.wordpress.com":u(c.lW),"en.forums.wordpress.com":l("/forums",c.BS),"automattic.com/privacy/":u(c.S9),"automattic.com/cookies/":u(c.K8),"wordpress.com/help/contact/":(e,t,o)=>o?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),u(c._J)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:u(c.lW)(e,t),"wordpress.com/theme/":(e,t,o)=>o?e:u(c.lW)(e,t),"wordpress.com/themes/":(e,t,o)=>o?e:u(c.lW)(e,t),"wordpress.com/plugins/":(e,t,o)=>o?e:u(c.lW)(e,t),"wordpress.com/log-in/":(e,t,o)=>o?e:m(c.lW)(e,t),"wordpress.com/start/":(e,t,o)=>o?e:m(c.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(c.mt)(e,t),"wordpress.com/plans/":(e,t,o)=>o||"/plans/"!==e.pathname?e:u(c.Ws)(e,t),"wordpress.com/setup/":(e,t,o)=>o?e:m(c.lW)(e,t)};function w(e){try{return new URL(String(e),i).pathname.endsWith("/")}catch(e){return!1}}function h(e,t=function(){return(0,p.t)()??"en"}(),o=!0,s=!1){let r;try{r=new URL(String(e),i)}catch(t){return e}if(r.origin===i)return e;r.protocol="https:",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const n=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===n)return e;const c=[r.host,r.host+n,r.host+r.pathname];for(let n=c.length-1;n>=0;n--)if(c[n]in k){const p=k[c[n]](r,t,o).href;if(!s)return p;try{const t=new URL(p);return w(e)||(t.pathname=t.pathname.replace(/\/+$/,"")),t.href}catch{return p}}return e}function b(){const e=(0,p.Ym)();return(0,n.useCallback)(((t,o,s,r)=>h(t,o||e,s,r)),[e])}(0,r.createHigherOrderComponent)((e=>t=>{const o={...t,localizeUrl:b()};return(0,s.jsx)(e,{...o})}),"withLocalizeUrl")},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 s=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(r=s))})),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:s}=e.exports;s.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,n,p=null;function c(...e){if(!c.enabled)return;const s=c,r=Number(new Date),n=r-(o||r);s.diff=n,s.prev=o,s.curr=r,o=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let p=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((o,r)=>{if("%%"===o)return"%";p++;const n=t.formatters[r];if("function"==typeof n){const t=e[p];o=n.call(s,t),e.splice(p,1),p--}return o})),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=s,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==p?p:(r!==t.namespaces&&(r=t.namespaces,n=t.enabled(e)),n),set:e=>{p=e}}),"function"==typeof t.init&&t.init(c),c}function s(e,o){const s=t(this.namespace+(void 0===o?":":o)+e);return s.log=this.log,s}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 s=("string"==typeof e?e:"").split(/[\s,]+/),r=s.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,s=60*o,r=24*s,n=7*r,p=365.25*r;function c(e,t,o,s){var r=t>=1.5*o;return Math.round(e/o)+" "+s+(r?"s":"")}e.exports=function(e,i){i=i||{};var d=typeof e;if("string"===d&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\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(!c)return;var i=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*p;case"weeks":case"week":case"w":return i*n;case"days":case"day":case"d":return i*r;case"hours":case"hour":case"hrs":case"hr":case"h":return i*s;case"minutes":case"minute":case"mins":case"min":case"m":return i*o;case"seconds":case"second":case"secs":case"sec":case"s":return i*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===d&&isFinite(e))return i.long?function(e){var n=Math.abs(e);if(n>=r)return c(e,n,r,"day");if(n>=s)return c(e,n,s,"hour");if(n>=o)return c(e,n,o,"minute");if(n>=t)return c(e,n,t,"second");return e+" ms"}(e):function(e){var n=Math.abs(e);if(n>=r)return Math.round(e/r)+"d";if(n>=s)return Math.round(e/s)+"h";if(n>=o)return Math.round(e/o)+"m";if(n>=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))}},90372:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o(46941);const r=o.n(s)()("dops:analytics");let n,p;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const c={initialize:function(e,t,o){c.setUser(e,t),c.setSuperProps(o),c.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){p={ID:e,username:t}},setSuperProps:function(e){n=e},assignSuperProps:function(e){n=Object.assign(n||{},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);c.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);c.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+o+"&t="+Math.random())}},pageView:{record:function(e,t){c.tracks.recordPageView(e),c.ga.recordPageView(e,t)}},purchase:{record:function(e,t,o,s,r,n,p){c.ga.recordPurchase(e,t,o,s,r,n,p)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(n&&(r("- Super Props: %o",n),t=Object.assign(t,n)),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};c.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){c.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={};c.ga.initialized||(p&&(e={userId:"u-"+p.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),c.ga.initialized=!0)},recordPageView:function(e,t){c.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,s){c.ga.initialize();let n="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==o&&(n+=" [Option Label: "+o+"]"),void 0!==s&&(n+=" [Option Value: "+s+"]"),r(n),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,o,s)},recordPurchase:function(e,t,o,s,r,n,p){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:s,currency:p}),window.ga("ecommerce:addItem",{id:e,name:t,sku:o,price:r,quantity:n}),window.ga("ecommerce:send")}},identifyUser:function(){p&&window._tkq.push(["identifyUser",p.ID,p.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},i=c},85985:(e,t,o)=>{"use strict";o.d(t,{st:()=>s.A});o(82034),o(65595),o(53265);var s=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)},73489:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var s=o(90372),r=o(39384),n=o(86087);const{tracks:p}=s.A,{recordEvent:c}=p,i=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:o="page_view",pageViewEventProperties:i={}}={})=>{const[d,l]=(0,n.useState)(!1),{isUserConnected:a,isRegistered:u,userConnectionData:m={}}=(0,r.useConnection)(),{wpcomUser:{login:k,ID:w}={},blogId:h}=m.currentUser||{},b=(0,n.useCallback)((async(e,t={})=>{a&&w&&k&&c(e,t)}),[a,w,k]);return(0,n.useEffect)((()=>{a&&w&&k&&h&&s.A.initialize(w,k,{blog_id:h})}),[h,w,k,a]),(0,n.useEffect)((()=>{const s=e?`${t}_${e}_${o}`:null;u&&s&&(d||(b(s,i),l(!0)))}),[d,t,e,o,u,i,b]),{recordEvent:b,tracks:p}}},76923:(e,t,o)=>{"use strict";o(47143),o(86087),o(88290)},27105:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>a,E9:()=>l});var s=o(47143),r=o(62634),n=o(94478),p=o(88290);const c="SET_JETPACK_MODULES";function i(e){return l({isLoading:e})}function d(e,t){return{type:"SET_MODULE_UPDATING",name:e,isUpdating:t}}function l(e){return{type:c,options:e}}const a={updateJetpackModuleStatus:function*(e){try{yield d(e.name,!0),yield(0,n.sB)(e);const t=yield(0,n.wz)();return yield l({data:t}),!0}catch{const e=(0,s.select)(p.F).getJetpackModules();return yield l(e),!1}finally{yield d(e.name,!1)}},setJetpackModules:l,fetchModules:function*(){if((0,r.Sy)())return!0;try{yield i(!0);const e=yield(0,n.wz)();return yield l({data:e}),!0}catch{const e=(0,s.select)(p.F).getJetpackModules();return yield l(e),!1}finally{yield i(!1)}}}},94478:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>d,sB:()=>i,wz:()=>c});var s=o(1455),r=o.n(s);const n="FETCH_JETPACK_MODULES",p="UPDATE_JETPACK_MODULE_STATUS",c=()=>({type:n}),i=e=>({type:p,settings:e}),d={[n]:function(){return r()({path:"/jetpack/v4/module/all",method:"GET"})},[p]: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:()=>d});var s=o(47143),r=o(27105),n=o(94478),p=o(38862),c=o(62701),i=o(31640);const d="jetpack-modules",l=(0,s.createReduxStore)(d,{reducer:p.A,actions:r.Ay,controls:n.Ay,resolvers:c.A,selectors:i.A});(0,s.register)(l);const a=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==a&&(0,s.dispatch)(d).setJetpackModules({data:{...a}})},38862:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});const s={isLoading:!1,isUpdating:{},data:{}},r=(e=s,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:()=>n});var s=o(27105),r=o(94478);const n={getJetpackModules:function*(){try{const e=yield(0,r.wz)();if(e)return(0,s.E9)({data:e})}catch(e){console.error(e)}}}},31640:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var s=o(62634);const r={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,s.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 s=o(27723);o(93832),o(66087);const __=s.__;__("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";function s(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function r(){return"simple"===s()}o.d(t,{Sy:()=>r})},65595:(e,t,o)=>{"use strict";o(96072),o(29491)},48424:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>n,UT:()=>s,V4:()=>r});const s={"core/embed":{soundcloud:{link:"https://wordpress.com/support/soundcloud-audio-player/",postId:4213},twitter:{link:"https://wordpress.com/support/wordpress-editor/blocks/twitter-block/",postId:150413},vimeo:{link:"https://wordpress.com/support/videos/vimeo/",postId:1235},youtube:{link:"https://wordpress.com/support/wordpress-editor/blocks/youtube-block/",postId:150414}}},r={"core/nextpage":{link:"https://wordpress.com/support/wordpress-editor/blocks/page-break-block/",postId:149374}},n={"core/template-part":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/template-part-block/",postId:192398},"core/site-title":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-title-block/",postId:184569},"core/site-tagline":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-tagline-block/",postId:184553},"core/site-logo":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/site-logo-block/",postId:184537},"core/page-list":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/page-list-block/",postId:180696},"core/loginout":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/login-out-block/",postId:184610},"core/video":{link:"https://wordpress.com/support/wordpress-editor/blocks/video-block/",postId:149045},"core/verse":{link:"https://wordpress.com/support/wordpress-editor/blocks/verse-block/",postId:149992},"core/spacer":{link:"https://wordpress.com/support/wordpress-editor/blocks/spacer-block/",postId:148996},"core/shortcode":{link:"https://wordpress.com/support/wordpress-editor/blocks/shortcode-block/",postId:149209},"core/separator":{link:"https://wordpress.com/support/wordpress-editor/blocks/separator-block/",postId:149012},"core/search":{link:"https://wordpress.com/support/wordpress-editor/blocks/search-block/",postId:187104},"core/rss":{link:"https://wordpress.com/support/wordpress-editor/blocks/rss-block/",postId:174794},"core/navigation":{link:"https://wordpress.com/support/site-editing/theme-blocks/navigation-block/",postId:162159},"core/tag-cloud":{link:"https://wordpress.com/support/wordpress-editor/blocks/tag-cloud-block/",postId:188957},"core/quote":{link:"https://wordpress.com/support/wordpress-editor/blocks/quote-block/",postId:148575},"core/pullquote":{link:"https://wordpress.com/support/wordpress-editor/blocks/pullquote-block/",postId:149344},"core/preformatted":{link:"https://wordpress.com/support/wordpress-editor/blocks/preformatted-block/",postId:149339},"core/more":{link:"https://wordpress.com/support/wordpress-editor/blocks/more-block/",postId:148614},"core/list":{link:"https://wordpress.com/support/wordpress-editor/blocks/list-block/",postId:148563},"core/latest-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/latest-posts-block/",postId:149818},"core/latest-comments":{link:"https://wordpress.com/support/wordpress-editor/blocks/latest-comments-block/",postId:149811},"core/heading":{link:"https://wordpress.com/support/wordpress-editor/blocks/heading-block/",postId:148403},"core/file":{link:"https://wordpress.com/support/wordpress-editor/blocks/file-block/",postId:148586},"core/embed":{link:"https://wordpress.com/support/wordpress-editor/blocks/embed-block/",postId:150644},"core/html":{link:"https://wordpress.com/support/wordpress-editor/blocks/custom-html-block/",postId:149059},"core/code":{link:"https://wordpress.com/support/wordpress-editor/blocks/code-block/",postId:149042},"core/freeform":{link:"https://wordpress.com/support/wordpress-editor/blocks/classic-block/",postId:149026},"core/categories":{link:"https://wordpress.com/support/wordpress-editor/blocks/categories-block/",postId:149793},"core/calendar":{link:"https://wordpress.com/support/wordpress-editor/blocks/calendar-block/",postId:171935},"core/audio":{link:"https://wordpress.com/support/wordpress-editor/blocks/audio-block/",postId:148670},"core/archives":{link:"https://wordpress.com/support/wordpress-editor/blocks/archives-block/",postId:149225},"core/query":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/query-loop-block/",postId:184188},"core/media-text":{link:"https://wordpress.com/support/wordpress-editor/blocks/media-text-block/",postId:151100},"core/table":{link:"https://wordpress.com/support/wordpress-editor/blocks/table-block/",postId:149666},"core/social-links":{link:"https://wordpress.com/support/wordpress-editor/blocks/social-links-block/",postId:159466},"core/columns":{link:"https://wordpress.com/support/wordpress-editor/blocks/columns-block/",postId:149073},"core/image":{link:"https://wordpress.com/support/wordpress-editor/blocks/image-block/",postId:148378},"core/cover":{link:"https://wordpress.com/support/wordpress-editor/blocks/cover-block/",postId:148675},"core/buttons":{link:"https://wordpress.com/support/wordpress-editor/blocks/buttons-block/",postId:162116},"core/gallery":{link:"https://wordpress.com/support/wordpress-editor/blocks/gallery-block/",postId:148667},"core/post-content":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/post-content-block/",postId:216265},"core/table-of-contents":{link:"https://wordpress.com/support/wordpress-editor/table-of-contents-block/",postId:201571},"core/comments":{link:"https://wordpress.com/support/full-site-editing/theme-blocks/comments-block/",postId:218903},"core/post-time-to-read":{link:"https://wordpress.com/support/site-editing/theme-blocks/time-to-read-block",postId:243241},"syntaxhighlighter/code":{link:"https://wordpress.com/support/wordpress-editor/blocks/syntax-highlighter-code-block/",postId:4743},"crowdsignal-forms/vote":{link:"https://wordpress.com/support/wordpress-editor/blocks/vote-block/",postId:174824},"crowdsignal-forms/poll":{link:"https://wordpress.com/support/wordpress-editor/blocks/poll-block/",postId:170183},"crowdsignal-forms/nps":{link:"https://wordpress.com/support/wordpress-editor/blocks/measure-nps-block/",postId:182393},"crowdsignal-forms/feedback":{link:"https://wordpress.com/support/wordpress-editor/blocks/feedback-button-block/",postId:183578},"a8c/posts-carousel":{link:"https://wordpress.com/support/wordpress-editor/blocks/posts-carousel-block/",postId:166417},"premium-content/container":{link:"https://wordpress.com/support/wordpress-editor/blocks/premium-content-block/",postId:243475},"a8c/blog-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/blog-posts-block/",postId:158419},"jetpack/send-a-message":{link:"https://wordpress.com/support/wordpress-editor/blocks/whatsapp-button-block/",postId:169728},"jetpack/blogroll":{link:"https://wordpress.com/support/wordpress-editor/blocks/blogroll-block/",postId:291406},"jetpack/timeline":{link:"https://wordpress.com/support/wordpress-editor/blocks/timeline-block/",postId:158453},"jetpack/story":{link:"https://wordpress.com/support/wordpress-editor/blocks/story-block/",postId:176320},"jetpack/revue":{link:"https://wordpress.com/support/wordpress-editor/blocks/revue-block/",postId:67810},"jetpack/rating-star":{link:"https://wordpress.com/support/wordpress-editor/blocks/ratings-block/",postId:158224},"jetpack/related-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/related-posts-block/",postId:1545},"jetpack/repeat-visitor":{link:"https://wordpress.com/support/wordpress-editor/blocks/repeat-visitor-block/",postId:154471},"jetpack/podcast-player":{link:"https://wordpress.com/support/wordpress-editor/blocks/podcast-player-block/",postId:163160},"jetpack/opentable":{link:"https://wordpress.com/support/wordpress-editor/blocks/opentable-block/",postId:162208},"jetpack/map":{link:"https://wordpress.com/support/wordpress-editor/blocks/map-block/",postId:149684},"jetpack/image-compare":{link:"https://wordpress.com/support/wordpress-editor/blocks/image-compare-block/",postId:168169},"jetpack/gif":{link:"https://wordpress.com/support/wordpress-editor/blocks/gif-block/",postId:174810},"jetpack/event-countdown":{link:"https://wordpress.com/support/wordpress-editor/blocks/event-countdown-block/",postId:159246},"jetpack/donations":{link:"https://wordpress.com/support/wordpress-editor/blocks/donations/",postId:171110},"jetpack/calendly":{link:"https://wordpress.com/support/wordpress-editor/blocks/calendly-block/",postId:162199},"jetpack/business-hours":{link:"https://wordpress.com/support/wordpress-editor/blocks/business-hours-block/",postId:173136},"jetpack/wordads":{link:"https://wordpress.com/support/wordpress-editor/blocks/ad-block/",postId:190916},"jetpack/payments-intro":{link:"https://wordpress.com/support/wordpress-editor/blocks/payments/",postId:169123},"jetpack/contact-info":{link:"https://wordpress.com/support/wordpress-editor/blocks/contact-info-block/",postId:186162},"jetpack/tiled-gallery":{link:"https://wordpress.com/support/wordpress-editor/blocks/tiled-gallery-block/",postId:150746},"jetpack/slideshow":{link:"https://wordpress.com/support/wordpress-editor/blocks/slideshow-block/",postId:157055},"jetpack/subscriptions":{link:"https://wordpress.com/support/wordpress-editor/blocks/subscription-form-block/",postId:170164},"jetpack/contact-form":{link:"https://wordpress.com/support/wordpress-editor/blocks/form-block/",postId:168307},"jetpack/layout-grid":{link:"https://wordpress.com/support/wordpress-editor/blocks/layout-grid-block/",postId:160172},"jetpack/mailchimp":{link:"https://wordpress.com/support/wordpress-editor/blocks/mailchimp-block/",postId:152657},"jetpack/paywall":{link:"https://wordpress.com/support/paid-newsletters/#use-the-paywall-block",postId:168381},"jetpack/sharing-buttons":{link:"https://wordpress.com/support/wordpress-editor/blocks/sharing-buttons-block/",postId:330003},"jetpack/like":{link:"https://wordpress.com/support/likes/",postId:7294},"jetpack/subscriber-login":{link:"https://wordpress.com/support/wordpress-editor/blocks/subscriber-login-block/",postId:380451},"jetpack/blog-stats":{link:"https://wordpress.com/support/wordpress-editor/blocks/blog-stats-block/",postId:382010},"jetpack/top-posts":{link:"https://wordpress.com/support/wordpress-editor/blocks/top-posts-pages-block/",postId:381536},"jetpack/goodreads":{link:"https://wordpress.com/support/wordpress-editor/blocks/goodreads-block/",postId:382051}}},19576:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var s=o(14437),r=o(85985),n=o(56427),p=o(47143),c=o(27723),i=o(51609),d=o.n(i);const __=c.__;function l({children:e,title:t,url:o,postId:c}){const[l,a]=(0,i.useState)(),{tracks:u}=(0,r.st)(),m=(0,p.useDispatch)("automattic/help-center"),k=m?.setShowHelpCenter,w=m?.setShowSupportDoc;return l&&!l?.closest(".block-editor-block-inspector")?e:d().createElement(d().Fragment,null,e,d().createElement("br",null),k?d().createElement(n.Button,{onClick:()=>{k(!0),w((0,s.rm)(o),c),u.recordEvent("jetpack_mu_wpcom_block_description_support_link_click",{block:t,support_link:o})},style:{marginTop:10,height:"unset"},ref:e=>l!==e&&a(e),className:"fse-inline-support-link is-compact",variant:"link"},__("Block guide","jetpack-mu-wpcom")):d().createElement(n.ExternalLink,{onClick:()=>{u.recordEvent("jetpack_mu_wpcom_block_description_support_link_click",{block:t,support_link:o})},ref:e=>l!==e&&a(e),style:{display:"block",marginTop:10,maxWidth:"fit-content"},className:"fse-inline-support-link",href:o},__("Learn more","jetpack-mu-wpcom")))}},39384:e=>{"use strict";e.exports=window.JetpackConnection},51609:e=>{"use strict";e.exports=window.React},10790:e=>{"use strict";e.exports=window.ReactJSXRuntime},66087:e=>{"use strict";e.exports=window.lodash},1455:e=>{"use strict";e.exports=window.wp.apiFetch},56427:e=>{"use strict";e.exports=window.wp.components},29491:e=>{"use strict";e.exports=window.wp.compose},47143:e=>{"use strict";e.exports=window.wp.data},86087:e=>{"use strict";e.exports=window.wp.element},52619:e=>{"use strict";e.exports=window.wp.hooks},27723:e=>{"use strict";e.exports=window.wp.i18n},92279:e=>{"use strict";e.exports=window.wp.plugins},93832:e=>{"use strict";e.exports=window.wp.url},96072:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=o(14437),t=o(86087),s=o(52619),r=o(51609),n=o.n(r),p=o(48424),c=o(19576);const i=(o,s,r,p)=>{const i=(0,e.rm)(r);return(0,t.createInterpolateElement)("",{InlineSupportLink:n().createElement(c.A,{title:String(o),url:i,postId:p},s)})},d={};(0,s.addFilter)("blocks.registerBlockType","jetpack-mu-wpcom/add-block-support-link",((e,t)=>{const o=e?.parent?.toString(),s=o&&"core/post-content"!==o?o:t;if(d[t])return e;d[t]=!0;const r=p.V4[t]?.link||p.Ay[s]?.link,n=p.V4[t]?.postId||p.Ay[s]?.postId;return r&&n&&(e.description=i(String(e.title),e.description,r,n)),p.UT[t]&&e.variations&&Array.isArray(e.variations)&&(e.variations=e.variations.map((e=>{let o=p.UT[t][e.name]?.link,s=p.UT[t][e.name]?.postId;if(o||"core/embed"!==t){if(!o)return e}else o="https://wordpress.com/support/wordpress-editor/blocks/embed-block/",s=150644;return e.description=i(e.title,e.description,o,s),e}))),e}))})()})(); \ No newline at end of file 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 32fd038a..f6036753 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-router', 'wp-url'), 'version' => '6e9b0e0aa9eccf002205'); + 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' => '04bc49fdc15475fbae12'); 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 95ea68fd..23718c8c 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 U=(0,n.A)(W),z=[];if(p&&z.push(D[N]<=0),f&&z.push(D[W]<=0,D[U]<=0),z.every((function(e){return e}))){P=T,M=!1;break}O.set(T,z)}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 U,z="y"===P?n.Mn:n.kb,G="y"===P?n.sQ:n.pG,B="y"===P?"height":"width",V=T[P],q=V+x[z],$=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[z],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!=(U=null==D?void 0:D[P])?U: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)},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]),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:U,attributes:z,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:U?.popper,...z?.popper}:null,V=!y&&M&&E?{style:U?.arrow,...z?.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=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 U=(0,n.A)(W),z=[];if(p&&z.push(D[N]<=0),f&&z.push(D[W]<=0,D[U]<=0),z.every((function(e){return e}))){P=T,M=!1;break}O.set(T,z)}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 U,z="y"===P?n.Mn:n.kb,G="y"===P?n.sQ:n.pG,B="y"===P?"height":"width",V=T[P],q=V+x[z],$=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[z],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!=(U=null==D?void 0:D[P])?U: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{const e=(0,n.select)(i.F).getJetpackModules();return yield u(e),!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{const e=(0,n.select)(i.F).getJetpackModules();return yield u(e),!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]),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:U,attributes:z,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:U?.popper,...z?.popper}:null,V=!y&&M&&E?{style:U?.arrow,...z?.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 */ __("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}])}},15184:(e,t,o)=>{"use strict";o.d(t,{p:()=>r});var n=o(13053);const r=()=>{let e;try{return e=(0,n.__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,e}catch(e){return void console.error("Error: Unable to get the unlock api. Reason: %s",e)}}},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(93832),u=o(13122),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);function k(){const[e]=(0,i.useState)((0,l.getQueryArg)(window.location.href,"showDraftPostModal")),{show:t,isLoaded:o,variant:c,isManuallyOpened:d,isNewPageLayoutModalOpen:p}=(0,s.useSelect)((e=>{const t=e("automattic/wpcom-welcome-guide"),o=e("automattic/starter-page-layouts");return{show:t.isWelcomeGuideShown(),isLoaded:t.isWelcomeGuideStatusLoaded(),variant:t.getWelcomeGuideVariant(),isManuallyOpened:t.isWelcomeGuideManuallyOpened(),isNewPageLayoutModalOpen:o?.isOpen()}}),[]),f=(0,u.J)(),g=(0,s.useDispatch)("automattic/starter-page-layouts")?.setOpenState,{fetchWelcomeGuideStatus:h}=(0,s.useDispatch)("automattic/wpcom-welcome-guide");(0,i.useEffect)((()=>{o||h()}),[h,o]);return!(0,a.applyFilters)("a8c.WpcomBlockEditorWelcomeTour.show",t)||p||f&&"edit"!==f?null:c===v.gH&&!d&&g?(g("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(k,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,htmlFor:s,...c})=>{const l=a.Children.count(e)>0;return React.createElement("label",r()({htmlFor:s},c,{className:(0,i.A)(n,"form-label")}),e,l&&t&&React.createElement("small",{className:"form-label__required"},__("Required","jetpack-mu-wpcom")),l&&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)}},32571:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},92811:(e,t,o)=>{"use strict";let n;o.d(t,{A:()=>s});const r=new Uint8Array(16);function s(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))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,{k:()=>r});const n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).slice(1));function r(e,t=0){return n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]}},60070:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(32571),r=o(92811),s=o(54755);const i=function(e,t,o){if(n.A.randomUUID&&!t&&!e)return n.A.randomUUID();const i=(e=e||{}).random||(e.rng||r.A)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){o=o||0;for(let e=0;e<16;++e)t[o+e]=i[e];return t}return(0,s.k)(i)}},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