Full Site Editing - Version 3.22835

Version Description

Download this release

Release Info

Developer ebuccelli
Plugin Icon wp plugin Full Site Editing
Version 3.22835
Comparing to
See all releases

Code changes from version 3.22750 to 3.22835

full-site-editing-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
- * Version: 3.22750
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
@@ -42,7 +42,7 @@ namespace A8C\FSE;
42
  *
43
  * @var string
44
  */
45
- define( 'A8C_ETK_PLUGIN_VERSION', '3.22750' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
@@ -338,6 +338,11 @@ add_action( 'plugins_loaded', __NAMESPACE__ . '\load_tags_education' );
338
  * (Core Full Site Editing)
339
  */
340
  function load_wpcom_site_editor() {
 
 
 
 
 
341
  require_once __DIR__ . '/wpcom-site-editor/index.php';
342
  }
343
  add_action( 'plugins_loaded', __NAMESPACE__ . '\load_wpcom_site_editor', 11 ); // load just after the Gutenberg plugin.
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 3.22835
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
42
  *
43
  * @var string
44
  */
45
+ define( 'A8C_ETK_PLUGIN_VERSION', '3.22835' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
338
  * (Core Full Site Editing)
339
  */
340
  function load_wpcom_site_editor() {
341
+ // This is no longer needed after Gutenberg 12.2 due to the Navigation menu no longer being inscrutable.
342
+ // This should be deleted along with the files that would be loaded after 12.2 is in production.
343
+ if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '12.2.0', '>=' ) ) {
344
+ return;
345
+ }
346
  require_once __DIR__ . '/wpcom-site-editor/index.php';
347
  }
348
  add_action( 'plugins_loaded', __NAMESPACE__ . '\load_wpcom_site_editor', 11 ); // load just after the Gutenberg plugin.
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
- Stable tag: 3.22750
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
+ Stable tag: 3.22835
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
tags-education/dist/tags-education.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '29799f0f83d5b11210af9d753a79727f');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => 'e5ef652960a95a56e86b10517bfa5ada');
whats-new/dist/whats-new.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-react-i18n'), 'version' => 'f14151b75320e06faea51216561c1f82');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-react-i18n'), 'version' => 'f02839ad53e600ee0a025792a450de2b');
wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '9055ada0de6f920ae078a0892a7e1fb4');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '262565317772446e7b2ad34d60fbae09');
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'f30a831b29c36dd10738de759fec8aea');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '65bac261842a2b9598b6eb90f586a70c');
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.js CHANGED
@@ -3,4 +3,4 @@
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,o),r(n)},e.once("error",i)),e.once(t,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,s,u;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=a(e))>0&&s.length>o&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function f(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):m(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var a=i[e];if(void 0===a)return!1;if("function"==typeof a)r(a,this,t);else{var u=a.length,l=m(a,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,s;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4495:function(e,t,n){"use strict";var r=n(212),o=n(9561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},8032:function(e,t,n){"use strict";var r=n(212),o=n(4495),i=n(713),s=n(9561),c=r.sum32,a=r.sum32_4,u=r.sum32_5,l=i.ch32,d=i.maj32,f=i.s0_256,p=i.s1_256,m=i.g0_256,h=i.g1_256,g=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(w,g),e.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(h(n[r-2]),n[r-7],m(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],b=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var E=u(_,p(w),l(w,y,b),this.k[r],n[r]),x=c(f(o),d(o,i,g));_=b,b=y,y=w,w=c(v,E),v=g,g=i,i=o,o=c(E,x)}this.h[0]=c(this.h[0],o),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],g),this.h[3]=c(this.h[3],v),this.h[4]=c(this.h[4],w),this.h[5]=c(this.h[5],y),this.h[6]=c(this.h[6],b),this.h[7]=c(this.h[7],_)},w.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?s(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(9561),o=n(1285);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(e,o)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=s(o)),n+=a(o.toString(16))}return n},t.zero2=c,t.zero8=a,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var s=new Array(i/4),c=0,a=t;c<s.length;c++,a+=4){var u;u="big"===o?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],s[c]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,s=(i<r?1:0)+n+o;e[t]=s>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,s,c){var a=0,u=t;return a+=(u=u+r>>>0)<t?1:0,a+=(u=u+i>>>0)<i?1:0,e+n+o+s+(a+=(u=u+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,s,c){return t+r+i+c>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,s,c,a,u){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+i>>>0)<i?1:0,l+=(d=d+c>>>0)<c?1:0,e+n+o+s+a+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,s,c,a,u){return t+r+i+c+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},3186:function(){},8005:function(){},5773:function(){},7777:function(){},7710:function(){},6372:function(){},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o,s=365.25*o;function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,a){a=a||{};var u=typeof e;if("string"===u&&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 a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&isFinite(e))return a.long?function(e){var i=Math.abs(e);if(i>=o)return c(e,i,o,"day");if(i>=r)return c(e,i,r,"hour");if(i>=n)return c(e,i,n,"minute");if(i>=t)return c(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=r)return Math.round(e/r)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=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))}},8435:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var c,a,u,l;if(Array.isArray(e)){if((c=e.length)!=s.length)return!1;for(a=c;0!=a--;)if(!i(e[a],s[a]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(l=e.entries();!(a=l.next()).done;)if(!s.has(a.value[0]))return!1;for(l=e.entries();!(a=l.next()).done;)if(!i(a.value[1],s.get(a.value[0])))return!1;return!0}if(r&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(l=e.entries();!(a=l.next()).done;)if(!s.has(a.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((c=e.length)!=s.length)return!1;for(a=c;0!=a--;)if(e[a]!==s[a])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((c=(u=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(a=c;0!=a--;)if(!Object.prototype.hasOwnProperty.call(s,u[a]))return!1;if(t&&e instanceof Element)return!1;for(a=c;0!=a--;)if(("_owner"!==u[a]&&"__v"!==u[a]&&"__o"!==u[a]||!e.$$typeof)&&!i(e[u[a]],s[u[a]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},6194:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var r=n(9196),o=n(7295),i=n(8435),s=n.n(i),c=n(855),a=[],u=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),u={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||a},l=r.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=l[0],f=l[1],p=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);f({styles:(0,c.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,c.sq)(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),m=r.useMemo((function(){var e={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[p,{name:"applyStyles",enabled:!1}])};return s()(i.current,e)?i.current||e:(i.current=e,e)}),[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,p]),h=r.useRef();return(0,c.LI)((function(){h.current&&h.current.setOptions(m)}),[m]),(0,c.LI)((function(){if(null!=e&&null!=t){var r=(n.createPopper||o.fi)(e,t,m);return h.current=r,function(){r.destroy(),h.current=null}}}),[e,t,n.createPopper]),{state:h.current?h.current.state:null,styles:d.styles,attributes:d.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}}},855:function(e,t,n){"use strict";n.d(t,{sq:function(){return o},LI:function(){return i}});var r=n(9196),o=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},i="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},7869:function(e,t,n){"use strict";var r=n(9307),o=(n(3945),n(849)),i=n(4655),s=n(5609),c=n(9818),a=n(8817),u=n(6483),l=n(3867),d=n(9935),f=n(1970),p=n(374),m=n(2753);function h(){var e;const[t]=(0,r.useState)((0,u.getQueryArg)(window.location.href,"showDraftPostModal")),{show:n,isLoaded:a,variant:d,isManuallyOpened:h,isNewPageLayoutModalOpen:g}=(0,c.useSelect)((e=>{const t=e("automattic/wpcom-welcome-guide"),n=e("automattic/starter-page-layouts");return{show:t.isWelcomeGuideShown(),isLoaded:t.isWelcomeGuideStatusLoaded(),variant:t.getWelcomeGuideVariant(),isManuallyOpened:t.isWelcomeGuideManuallyOpened(),isNewPageLayoutModalOpen:null==n?void 0:n.isOpen()}}),[]),v=null===(e=(0,c.useDispatch)("automattic/starter-page-layouts"))||void 0===e?void 0:e.setOpenState,{fetchWelcomeGuideStatus:w}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");return(0,r.useEffect)((()=>{a||w()}),[w,a]),!n||g?null:d===f.yn&&!h&&v?(v("OPEN_FOR_BLANK_CANVAS"),null):d===f.Sz?(0,r.createElement)(o.Iw,{localeSlug:window.wpcomBlockEditorNuxLocale??i.OP},t?(0,r.createElement)(l.Z,null):(0,r.createElement)(m.Z,null)):"modal"===d&&s.Guide&&s.GuidePage?(0,r.createElement)(p.Z,null):null}(0,a.registerPlugin)("wpcom-block-editor-nux",{render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h,null),(0,r.createElement)(d.Z,null))})},1568:function(e,t,n){"use strict";var r=n(9818);n(462);const o=(0,r.subscribe)((()=>{var e;(0,r.dispatch)("core/nux").disableTips(),null!==(e=(0,r.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,r.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),o()}));(0,r.subscribe)((()=>{var e;(0,r.select)("core/nux").areTipsEnabled()&&((0,r.dispatch)("core/nux").disableTips(),(0,r.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0)),null!==(e=(0,r.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,r.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,r.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0}))}))},3867:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(5609),s=n(9818),c=n(2694),a=n(5736),u=n(3634),l=n(3790);n(3186);const __=a.__,d="a8c.wpcom-block-editor.closeEditor";t.Z=()=>{const e=window._currentSiteId,t=(0,s.useSelect)((t=>t("automattic/site").getPrimarySiteDomain(e))),n=`/home/${(null==t?void 0:t.domain)||window.location.hostname}`,[a,f]=(0,r.useState)(!0),p=()=>f(!1);return(0,r.createElement)(u.Z,{isOpen:a,className:"wpcom-block-editor-draft-post-modal",title:__("Write your first post","full-site-editing"),description:__("It’s time to flex those writing muscles and start drafting your first post!","full-site-editing"),imageSrc:l,actionButtons:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.Button,{isPrimary:!0,onClick:p},__("Start writing","full-site-editing")),(0,r.createElement)(i.Button,{isSecondary:!0,onClick:()=>{(0,c.hasAction)(d)?(0,c.doAction)(d,n):window.location.href=`https://wordpress.com${n}`}},__("I'm not ready","full-site-editing"))),onRequestClose:p,onOpen:()=>(0,o.jN)("calypso_editor_wpcom_draft_post_modal_show")})}},3634:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(2779),s=n.n(i);n(9196),n(8005);t.Z=e=>{let{isOpen:t,className:n,title:i,description:c,imageSrc:a,actionButtons:u,onRequestClose:l,onOpen:d}=e;const f=(0,r.useRef)(null);return(0,r.useEffect)((()=>{!f.current&&t&&(null==d||d()),f.current=t}),[f,t,d]),t?(0,r.createElement)(o.Modal,{className:s()("wpcom-block-editor-nux-modal",n),open:t,title:"",onRequestClose:l},(0,r.createElement)("div",{className:"wpcom-block-editor-nux-modal__image-container"},(0,r.createElement)("img",{src:a,alt:i})),(0,r.createElement)("h1",{className:"wpcom-block-editor-nux-modal__title"},i),(0,r.createElement)("p",{className:"wpcom-block-editor-nux-modal__description"},c),(0,r.createElement)("div",{className:"wpcom-block-editor-nux-modal__buttons"},u)):null}},9935:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(5609),s=n(9818),c=n(5736),a=n(3634),u=n(5275);n(5773);const __=c.__;t.Z=()=>{const{link:e}=(0,s.useSelect)((e=>e("core/editor").getCurrentPost())),t=(0,s.useSelect)((e=>e("core/editor").getCurrentPostType())),n=(0,s.useSelect)((e=>e("core/editor").isCurrentPostPublished())),c=(0,r.useRef)(n),l=(0,s.useSelect)((e=>e("automattic/wpcom-welcome-guide").getShouldShowFirstPostPublishedModal())),[d,f]=(0,r.useState)(!1),{fetchShouldShowFirstPostPublishedModal:p,setShouldShowFirstPostPublishedModal:m}=(0,s.useDispatch)("automattic/wpcom-welcome-guide");return(0,r.useEffect)((()=>{p()}),[p]),(0,r.useEffect)((()=>{l&&!c.current&&n&&"post"===t&&(c.current=n,m(!1),window.setTimeout((()=>{f(!0)})))}),[t,l,n,m]),(0,r.createElement)(a.Z,{isOpen:d,className:"wpcom-block-editor-post-published-modal",title:__("Your first post is published!","full-site-editing"),description:__("Congratulations! You did it. View your post to see how it will look on your site.","full-site-editing"),imageSrc:u,actionButtons:(0,r.createElement)(i.Button,{isPrimary:!0,href:e},__("View Post","full-site-editing")),onRequestClose:()=>f(!1),onOpen:()=>(0,o.jN)("calypso_editor_wpcom_first_post_published_modal_show")})}},3945:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},1970:function(e,t,n){"use strict";n.d(t,{Sz:function(){return c},yn:function(){return a},z2:function(){return f}});var r=n(6989),o=n.n(r),i=n(9818),s=n(3418);n(3288);const c="tour",a="blank-canvas-tour",u=(0,i.combineReducers)({welcomeGuideManuallyOpened:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;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:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;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:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET":return t.tourRating;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},welcomeGuideVariant:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.variant;case"WPCOM_HAS_USED_PATTERNS_MODAL":return e===a?c:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return c;default:return e}},shouldShowFirstPostPublishedModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;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}}}),l={*fetchWelcomeGuideStatus(){return{type:"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS",response:yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/nux"})}},*fetchShouldShowFirstPostPublishedModal(){return{type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:(yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/should-show-first-post-published-modal"})).should_show_first_post_published_modal}},setShowWelcomeGuide:function(e){let{openedManually:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o()({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"}),setShouldShowFirstPostPublishedModal:e=>({type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:e}),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?c:e.welcomeGuideVariant,getShouldShowFirstPostPublishedModal:e=>e.shouldShowFirstPostPublishedModal};function f(){return(0,i.registerStore)("automattic/wpcom-welcome-guide",{reducer:u,actions:l,selectors:d,controls:s.controls,persist:!0})}},374:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(6115),s=n(5609),c=n(9818),a=n(5736),u=n(9711),l=n(6595),d=n(5486),f=n(7821);n(7777);const __=a.__;function p(e){let{pageNumber:t,isLastPage:n,alignBottom:r=!1,heading:c,description:a,imgSrc:u}=e;return(0,o.useEffect)((()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_slide_view",{slide_number:t,is_last_slide:n,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})}),[]),(0,o.createElement)(s.GuidePage,{className:"wpcom-block-editor-nux__page"},(0,o.createElement)("div",{className:"wpcom-block-editor-nux__text"},(0,o.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},c),(0,o.createElement)("div",{className:"wpcom-block-editor-nux__description"},a)),(0,o.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,o.createElement)("img",{key:u,src:u,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(r?" align-bottom":"")})))}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,c.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:a}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");if((0,o.useEffect)((()=>{var r;e&&!t&&(0,i.jN)("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding,is_manually_opened:n})}),[n,t,e]),!e||t)return null;const m=[{heading:__("Welcome to your website","full-site-editing"),description:__("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:l,alignBottom:!0},{heading:__("Add or edit your content","full-site-editing"),description:__("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:u},{heading:__("Preview your site as you go","full-site-editing"),description:__("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:d,alignBottom:!0},{heading:__("Hidden until you’re ready","full-site-editing"),description:__("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","full-site-editing"),imgSrc:f,alignBottom:!0}];return(0,o.createElement)(s.Guide,{className:"wpcom-block-editor-nux",contentLabel:__("Welcome to your website","full-site-editing"),finishButtonText:__("Get started","full-site-editing"),onFinish:()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),a(!1,{openedManually:!1})}},m.map(((e,t)=>(0,o.createElement)(p,(0,r.Z)({key:e.heading,pageNumber:t+1,isLastPage:t===m.length-1},e)))))}},805:function(e,t,n){"use strict";n.d(t,{O:function(){return r.O}});var r=n(2028)},2028:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(6951);function o(e){const t=(0,r._z)();e.forEach((e=>{const n=e.meta.imgSrc;(new window.Image).src=t&&n.mobile?n.mobile.src:n.desktop.src}))}},8574:function(e,t,n){"use strict";var r=n(9307),o=n(444);const i=(0,r.createElement)(o.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.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"}));t.Z=i},6139:function(e,t,n){"use strict";var r=n(9307),o=n(444);const i=(0,r.createElement)(o.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.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"}));t.Z=i},4308:function(e,t,n){"use strict";var r=n(9307),o=n(444);const i=(0,r.createElement)(o.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.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"}));t.Z=i},9425:function(e,t,n){"use strict";var r=n(9307),o=n(444);const i=(0,r.createElement)(o.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,r.createElement)(o.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"}));t.Z=i},9483:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9307),o=n(5609),i=n(5736),s=n(444),c=n(2819);const __=i.__;function a(e){let{currentPage:t,numberOfPages:n,setCurrentPage:s}=e;return(0,r.createElement)("ul",{className:"components-guide__page-control","aria-label":__("Guide controls","full-site-editing")},(0,c.times)(n,(e=>(0,r.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},(0,r.createElement)(o.Button,{key:e,icon:(0,r.createElement)(u,{isSelected:e===t}),"aria-label":(0,i.sprintf)(__("Page %1$d of %2$d","full-site-editing"),e+1,n),onClick:()=>s(e)})))))}const u=e=>{let{isSelected:t}=e;return(0,r.createElement)(s.SVG,{width:"6",height:"6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(s.Circle,{cx:"3",cy:"3",r:"3",fill:t?"#32373C":"#E1E3E6"}))}},2069:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(9321),s=n(5609),c=n(9818),a=n(5736),u=n(8565),l=n(2779),d=n.n(l),f=n(6139),p=n(4308),m=n(9425),h=n(9483);n(7710);const __=a.__;function g(e){let{currentStepIndex:t,lastStepIndex:n,onDismiss:o,setCurrentStepIndex:i,onNextStepProgression:c,onPreviousStepProgression:a,setInitialFocusedElement:u}=e;const l=__("Try it out!","full-site-editing"),d=__("Next","full-site-editing");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.Z,{currentPage:t,numberOfPages:n+1,setCurrentPage:i}),(0,r.createElement)("div",null,0===t?(0,r.createElement)(s.Button,{isTertiary:!0,onClick:o("no-thanks-btn")},__("Skip","full-site-editing")):(0,r.createElement)(s.Button,{isTertiary:!0,onClick:a},__("Back","full-site-editing")),(0,r.createElement)(s.Button,{className:"welcome-tour-card__next-btn",isPrimary:!0,onClick:c,ref:u},0===t?l:d)))}function v(e){let{onMinimize:t,onDismiss:n}=e;return(0,r.createElement)("div",{className:"welcome-tour-card__overlay-controls"},(0,r.createElement)(s.Flex,null,(0,r.createElement)(s.Button,{label:__("Minimize Tour","full-site-editing"),isPrimary:!0,className:"welcome-tour-card__minimize-icon",icon:f.Z,iconSize:24,onClick:t}),(0,r.createElement)(s.Button,{label:__("Close Tour","full-site-editing"),isPrimary:!0,icon:u.Z,iconSize:24,onClick:n("close-btn")})))}function w(e){let{isGutenboarding:t}=e,n=!1;const i=(0,c.useSelect)((e=>e("automattic/wpcom-welcome-guide").getTourRating())),{setTourRating:a}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");!n&&i&&(n=!0);const u=e=>{n||(n=!0,a(e?"thumbs-up":"thumbs-down"),(0,o.jN)("calypso_editor_wpcom_tour_rate",{thumbs_up:e,is_gutenboarding:t}))};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"welcome-tour__end-text"},__("Did you find this guide helpful?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)(s.Button,{"aria-label":__("Rate thumbs up","full-site-editing"),className:d()("welcome-tour__end-icon",{active:"thumbs-up"===i}),disabled:n,icon:m.Z,onClick:()=>u(!0),iconSize:24}),(0,r.createElement)(s.Button,{"aria-label":__("Rate thumbs down","full-site-editing"),className:d()("welcome-tour__end-icon",{active:"thumbs-down"===i}),disabled:n,icon:p.Z,onClick:()=>u(!1),iconSize:24})))}t.Z=function(e){var t,n;let{cardContent:c,currentStepIndex:a,justMaximized:u,lastStepIndex:l,onMinimize:f,onDismiss:p,setJustMaximized:m,setCurrentStepIndex:h,onNextStepProgression:y,onPreviousStepProgression:b,isGutenboarding:_,setInitialFocusedElement:E}=e;const{description:x,heading:C,imgSrc:k,imgNeedsPadding:S}=c,Z=a===l;var O;O=()=>{u?m(!1):(0,o.jN)("calypso_editor_wpcom_tour_slide_view",{slide_number:a+1,is_last_slide:Z,slide_heading:C,is_gutenboarding:_})},(0,r.useEffect)(O,[]);const M=d()("welcome-tour-card__media",{"is-with-extra-padding":(0,i.tq)()&&S});return(0,r.createElement)(s.Card,{className:"welcome-tour-card",isElevated:!0},(0,r.createElement)(v,{onDismiss:p,onMinimize:f}),(0,r.createElement)(s.CardMedia,{className:M},(0,r.createElement)("picture",null,k.mobile&&(0,r.createElement)("source",{srcSet:k.mobile.src,type:k.mobile.type,media:null===(t=(0,i.O9)(i.Gh))||void 0===t?void 0:t.media}),(0,r.createElement)("img",{alt:__("Editor Welcome Tour","full-site-editing"),src:null===(n=k.desktop)||void 0===n?void 0:n.src}))),(0,r.createElement)(s.CardBody,null,(0,r.createElement)("h2",{className:"welcome-tour-card__heading"},C),(0,r.createElement)("p",{className:"welcome-tour-card__description"},x,Z?(0,r.createElement)(s.Button,{className:"welcome-tour-card__description",isTertiary:!0,onClick:()=>h(0),ref:E},__("Restart tour","full-site-editing")):null)),(0,r.createElement)(s.CardFooter,null,Z?(0,r.createElement)(w,{isGutenboarding:_}):(0,r.createElement)(g,{currentStepIndex:a,lastStepIndex:l,onDismiss:p,setCurrentStepIndex:h,onNextStepProgression:y,onPreviousStepProgression:b,setInitialFocusedElement:E})))}},7520:function(e,t,n){"use strict";n.d(t,{M:function(){return i},m:function(){return s}});var r=n(9307);const o=(0,r.createContext)({}),i=e=>{let{children:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.createElement)(o.Provider,{value:{justMaximized:n,setJustMaximized:i}},t)},s=()=>(0,r.useContext)(o)},2753:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(849),s=n(6424),c=n(9321),a=n(9818),u=n(805),l=n(7520),d=n(4316),f=n(6778),p=n(8953);n(7710);function m(){var e;const t=(0,i.bU)(),{setShowWelcomeGuide:n}=(0,a.useDispatch)("automattic/wpcom-welcome-guide"),m=null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,h=()=>new URLSearchParams(document.location.search).has("welcome-tour-next"),g=(0,p.Z)(t,h()).filter((e=>!(e.meta.isDesktopOnly&&(0,c.tq)()))),{setJustMaximized:v}=(0,l.m)();(0,u.O)(g);const w={steps:g,renderers:{tourStep:f.Z,tourMinimized:d.Z},closeHandler:(e,t,r)=>{(0,o.jN)("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:m,slide_number:t+1,action:r}),n(!1,{openedManually:!1})},options:{callbacks:{onMinimize:e=>{(0,o.jN)("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:m,slide_number:e+1})},onMaximize:e=>{v(!0),(0,o.jN)("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:m,slide_number:e+1})}},effects:{__experimental__spotlight:h(),arrowIndicator:!1},popperModifiers:[(0,r.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n}=e;if("bottom"===t){const e=document.querySelector(".edit-post-header").getBoundingClientRect();return[0,e.height+e.y-(n.height+n.y)+16]}return[0,0]}}})),[])],className:"wpcom-editor-welcome-tour"}};return(0,r.createElement)(s.Z,{config:w})}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,a.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()}))),s=(0,i.bU)();return(0,u.O)([(0,p.Z)(s)[0]]),(0,r.useEffect)((()=>{var r;(e||t)&&(0,o.jN)("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding,is_manually_opened:n})}),[t,n,e]),!e||t?null:(0,r.createElement)(l.M,null,(0,r.createElement)(m,null))}},4316:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(5736),s=n(5869),c=n(8565),a=n(8574);const __=i.__;t.Z=e=>{let{steps:t,onMaximize:n,onDismiss:u,currentStepIndex:l}=e;const d=l+1,f=t.length-1+1;return(0,r.createElement)(o.Flex,{gap:0,className:"wpcom-editor-welcome-tour__minimized"},(0,r.createElement)(o.Button,{onClick:n,"aria-label":__("Resume Tour","full-site-editing")},(0,r.createElement)(o.Flex,{gap:13},(0,r.createElement)("p",null,(0,r.createInterpolateElement)((0,i.sprintf)(__("Resume welcome tour <span>(%1$d/%2$d)</span>","full-site-editing"),d,f),{span:(0,r.createElement)("span",{className:"wpcom-editor-welcome-tour__minimized-tour-index"})})),(0,r.createElement)(s.Z,{icon:a.Z,size:24}))),(0,r.createElement)(o.Button,{onClick:u("close-btn-minimized"),"aria-label":__("Close Tour","full-site-editing")},(0,r.createElement)(s.Z,{icon:c.Z,size:24})))}},6778:function(e,t,n){"use strict";var r=n(9307),o=n(2069),i=n(7520);t.Z=e=>{var t;let{steps:n,currentStepIndex:s,onDismiss:c,onNext:a,onPrevious:u,onMinimize:l,setInitialFocusedElement:d,onGoToStep:f}=e;const p=n.length-1,m=null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,{justMaximized:h,setJustMaximized:g}=(0,i.m)();return(0,r.createElement)(o.Z,{cardContent:n[s].meta,currentStepIndex:s,justMaximized:h,lastStepIndex:p,onDismiss:c,onMinimize:l,setJustMaximized:g,setCurrentStepIndex:f,onNextStepProgression:a,onPreviousStepProgression:u,isGutenboarding:m,setInitialFocusedElement:d})}},8953:function(e,t,n){"use strict";var r=n(9307),o=n(7498),i=n(5609),s=n(5736);const __=s.__;function c(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"}},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"}}}[e]}const a=[{desktop:null,mobile:null},{desktop:null,mobile:null},{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"},{desktop:null,mobile:null},{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)"},{desktop:".edit-post-header .edit-post-header__toolbar .components-button.editor-history__undo"},{mobile:null,desktop:null},{desktop:null,mobile:null}];t.Z=function(e,t){return[{referenceElements:t&&a[0],meta:{heading:__("Welcome to WordPress!","full-site-editing"),description:__("Take this short, interactive tour to learn the fundamentals of the WordPress editor.","full-site-editing"),imgSrc:c("welcome"),animation:null,imgNeedsPadding:!0}},{referenceElements:t&&a[1],meta:{heading:__("Everything is a block","full-site-editing"),description:__("In the WordPress Editor, paragraphs, images, and videos are all blocks.","full-site-editing"),imgSrc:c("allBlocks"),animation:null}},{referenceElements:t&&a[2],meta:{heading:__("Adding a new block","full-site-editing"),description:__("Click + to open the inserter. Then click the block you want to add.","full-site-editing"),imgSrc:c("addBlock"),animation:"block-inserter",imgNeedsPadding:!0}},{referenceElements:t&&a[3],meta:{heading:__("Click a block to change it","full-site-editing"),description:__("Use the toolbar to change the appearance of a selected block. Try making it bold.","full-site-editing"),imgSrc:c("makeBold"),animation:null}},{referenceElements:t&&a[4],meta:{heading:__("More Options","full-site-editing"),description:__("Click the settings icon to see even more options.","full-site-editing"),imgSrc:c("moreOptions"),animation:null,imgNeedsPadding:!0}},{referenceElements:t&&a[5],meta:{heading:__("Undo any mistake","full-site-editing"),description:__("Click the Undo button if you've made a mistake.","full-site-editing"),imgSrc:c("undo"),animation:"undo-button",isDesktopOnly:!0}},{referenceElements:t&&a[6],meta:{heading:__("Drag & drop","full-site-editing"),description:__("To move blocks around, click and drag the handle.","full-site-editing"),imgSrc:c("moveBlock"),animation:"undo-button",imgNeedsPadding:!0}},{referenceElements:t&&a[7],meta:{heading:__("Congratulations!","full-site-editing"),description:(0,r.createInterpolateElement)(__("You've learned the basics. Remember, your site is private until you <link_to_launch_site_docs>decide to launch</link_to_launch_site_docs>. View the <link_to_editor_docs>block editing docs</link_to_editor_docs> to learn more.","full-site-editing"),{link_to_launch_site_docs:(0,r.createElement)(i.ExternalLink,{href:(0,o.aq)("https://wordpress.com/support/settings/privacy-settings/#launch-your-site",e)}),link_to_editor_docs:(0,r.createElement)(i.ExternalLink,{href:(0,o.aq)("https://wordpress.com/support/wordpress-editor/",e)})}),imgSrc:c("finish"),animation:"block-inserter"}}]}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN}});n(1694),n(6209),n(9377);var r=n(9792);n(3722)},9377:function(e,t,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r=n(2699),o=n(4898),i=(n(3421),n(2819)),s=(n(9377),n(6209),n(9358));n(1694);const c=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let a,u=Promise.resolve();function l(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,o.ve)("//stats.wp.com/w.js?63"));const d=new r.EventEmitter;function f(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,i.includes)(c,e)){if(a){const e=a(t);t={...t,...e}}t=(0,i.omitBy)(t,(e=>void 0===e)),(0,s.Z)('Recording event "%s" with actual props %o',e,t),l(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(9792)},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),o=n.n(r);t.Z=o()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return u},bU:function(){return d}});var r=n(7896),o=n(9307),i=n(4333),s=n(5736),c=n(9196);const a=(0,c.createContext)(null),u=e=>{let{children:t,localeSlug:n}=e;return(0,o.createElement)(a.Provider,{value:n},t)};function l(){var e,t;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";const t=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=e.toLowerCase();return(t.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(e=s.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function d(){const e=(0,c.useContext)(a),t=!!e,[n,r]=(0,c.useState)(l());return(0,c.useEffect)((()=>{if(!t)return r(l()),s.subscribe((()=>{r(l())}))}),[t]),e||n||"en"}(0,i.createHigherOrderComponent)((e=>t=>{const n=d();return(0,o.createElement)(e,(0,r.Z)({locale:n},t))}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{OP:function(){return r},GG:function(){return o},iT:function(){return i},xn:function(){return s},Xb:function(){return c},hI:function(){return a},mL:function(){return u},vS:function(){return l},_r:function(){return d}});const r="en",o=["en","ja","es","pt","fr","pt-br"],i=["en","fr","de","es"],s=["en","fr","de","es"],c={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},a=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["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"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{aq:function(){return h}});var r=n(7896),o=n(9307),i=n(4333),s=n(9196),c=n(849),a=n(4655);const u="http://__domain__.invalid",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(n,r)=>(t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${a.Xb[r]||r}.${e}`),n)},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(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)},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(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},p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,r)=>f(e,t,"prefix")(n,r)},m={"wordpress.com/support/":p(a.hI),"wordpress.com/forums/":p(a.mL),"wordpress.com/blog/":p(a.GG,/^\/blog\/?$/),"wordpress.com/tos/":p(a.vS),"wordpress.com/wp-admin/":l("wordpress.com",a.vS),"wordpress.com/wp-login.php":l("wordpress.com",a.vS),"jetpack.com":l("jetpack.com",a._r),"en.support.wordpress.com":d("/support",a.hI),"en.blog.wordpress.com":d("/blog",a.GG,/^\/$/),"en.forums.wordpress.com":d("/forums",a.mL),"automattic.com/privacy/":p(a.iT),"automattic.com/cookies/":p(a.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),p(a.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:p(a.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:p(a.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:p(a.vS)(e,t),"wordpress.com/log-in/":(e,t,n)=>n?e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,r)=>f(e,t,"suffix")(n,r)}(a.vS)(e,t)};function h(e,t){let n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(e),u)}catch(s){return e}if(n.origin===u)return e;n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/"));const o=n.pathname.substr(0,1+n.pathname.indexOf("/",1));if("en.wordpress.com"===n.host&&(n.host="wordpress.com"),"/"+t+"/"===o)return e;const i=[n.host,n.host+o,n.host+n.pathname];for(let c=i.length-1;c>=0;c--)if(i[c]in m)return m[i[c]](n,t,r).href;return e}function g(){const e=(0,c.bU)();return(0,s.useCallback)(((t,n,r)=>h(t,n||e,r)),[e])}(0,i.createHigherOrderComponent)((e=>t=>{const n=g();return(0,o.createElement)(e,(0,r.Z)({localizeUrl:n},t))}),"withLocalizeUrl")},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return c},lZ:function(){return a},_W:function(){return l},Yt:function(){return d}});var r=n(8049);const o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function c(e){return s().has(e)}function a(e,t){const n=s();c(e)?(o(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(o(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=s(),r=n.get(e);if(r){o(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),r.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function l(){const e=this.getAttribute("src");o(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");o(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return c},k:function(){return a}});var r=n(8049),o=n.n(r),i=n(3340);const s=o()("lib/load-script/dom-operations");function c(e){s(`Creating script element for "${e}"`);const t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=i._W,t.onerror=i.Yt,t}function a(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return c}});var r=n(8049),o=n.n(r),i=n(3340),s=n(5606);o()("package/load-script");function c(e,t){if(!(0,i.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,i.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,i.lZ)(e,t)}},8626:function(e,t,n){"use strict";var r=n(9307),o=(n(9196),n(7474)),i=n(5386),s=n(9946);t.Z=e=>{let{onMinimize:t,onDismiss:n,onNextStepProgression:c,onPreviousStepProgression:a,tourContainerRef:u,isMinimized:l}=e;return(0,o.Z)(u)?l?(0,r.createElement)((function(){return(0,s.Z)({onEscape:n("esc-key-minimized")}),null}),null):(0,r.createElement)((function(){return(0,s.Z)({onEscape:t,onArrowRight:c,onArrowLeft:a}),(0,i.Z)(u),null}),null):null}},4065:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(6951),s=n(2779),c=n.n(s),a=n(3082),u=n(8626),l=n(7858),d=n(8074);const f=(e,t)=>{"function"==typeof t&&t(e)};t.Z=e=>{var t,n,s,p,m,h,g,v,w,y,b,_,E,x,C,k,S;let{config:Z}=e;const O=(0,o.useRef)(null),M=(0,o.useRef)(null),[P,L]=(0,o.useState)(null),[F,j]=(0,o.useState)(!1),[R,N]=(0,o.useState)(0),z=Z.steps.length-1,A=(0,i._z)(),T=(null===(t=Z.steps[R].referenceElements)||void 0===t?void 0:t[A?"mobile":"desktop"])||null,W=T?document.querySelector(T):null,I=()=>{var e,t;return!1!==(null===(e=Z.options)||void 0===e||null===(t=e.effects)||void 0===t?void 0:t.arrowIndicator)&&!(!W||F)},{styles:G,attributes:D}=(0,a.Z)(W,M.current,[{name:"preventOverflow",options:{rootBoundary:"document",padding:16}},{name:"arrow",options:{padding:12}},{name:"offset",options:{offset:[0,I()?12:10]}},...(null===(n=Z.options)||void 0===n?void 0:n.popperModifiers)||[]]),B=!F&&W?{style:null==G?void 0:G.popper,...null==D?void 0:D.popper}:null,U={style:null==G?void 0:G.arrow,...null==D?void 0:D.arrow},$=(0,o.useCallback)((()=>{var e,t;return!(null===(e=Z.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.__experimental__spotlight)&&!F}),[null===(s=Z.options)||void 0===s||null===(p=s.effects)||void 0===p?void 0:p.__experimental__spotlight,F]),H=(0,o.useCallback)((()=>{var e,t;return!($()||null===(e=Z.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.overlay)&&!F}),[null===(m=Z.options)||void 0===m||null===(h=m.effects)||void 0===h?void 0:h.overlay,F,$]),V=(0,o.useCallback)((e=>()=>{Z.closeHandler(Z.steps,R,e)}),[Z,R]),q=(0,o.useCallback)((()=>{var e,t;z>R&&N(R+1),f(R,null===(e=Z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onNextStep)}),[null===(g=Z.options)||void 0===g||null===(v=g.callbacks)||void 0===v?void 0:v.onNextStep,R,z]),K=(0,o.useCallback)((()=>{var e,t;R&&N(R-1),f(R,null===(e=Z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onPreviousStep)}),[null===(w=Z.options)||void 0===w||null===(y=w.callbacks)||void 0===y?void 0:y.onPreviousStep,R]),Y=(0,o.useCallback)((e=>{var t,n;N(e),f(R,null===(t=Z.options)||void 0===t||null===(n=t.callbacks)||void 0===n?void 0:n.onGoToStep)}),[null===(b=Z.options)||void 0===b||null===(_=b.callbacks)||void 0===_?void 0:_.onGoToStep,R]),J=(0,o.useCallback)((()=>{var e,t;j(!0),f(R,null===(e=Z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMinimize)}),[null===(E=Z.options)||void 0===E||null===(x=E.callbacks)||void 0===x?void 0:x.onMinimize,R]),X=(0,o.useCallback)((()=>{var e,t;j(!1),f(R,null===(e=Z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMaximize)}),[null===(C=Z.options)||void 0===C||null===(k=C.callbacks)||void 0===k?void 0:k.onMaximize,R]);(0,o.useEffect)((()=>{setTimeout((()=>null==P?void 0:P.focus()))}),[P]);const Q=c()("tour-kit-frame",null===(S=Z.options)||void 0===S?void 0:S.className);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(u.Z,{onMinimize:J,onDismiss:V,onNextStepProgression:q,onPreviousStepProgression:K,tourContainerRef:O,isMinimized:F}),(0,o.createElement)("div",{className:Q,ref:O},H()&&(0,o.createElement)(l.Z,{visible:!0}),$()&&(0,o.createElement)(d.Z,{referenceElement:W}),(0,o.createElement)("div",(0,r.Z)({className:"tour-kit-frame__container",ref:M},B),I()&&(0,o.createElement)("div",(0,r.Z)({className:"tour-kit-frame__arrow","data-popper-arrow":!0},U)),F?(0,o.createElement)(o.Fragment,null,Z.renderers.tourMinimized({steps:Z.steps,currentStepIndex:R,onMaximize:X,onDismiss:V})):(0,o.createElement)(o.Fragment,null,Z.renderers.tourStep({steps:Z.steps,currentStepIndex:R,onDismiss:V,onNext:q,onPrevious:K,onMinimize:J,setInitialFocusedElement:L,onGoToStep:Y})))))}},7858:function(e,t,n){"use strict";var r=n(9307),o=n(2779),i=n.n(o);t.Z=e=>{let{visible:t}=e;return(0,r.createElement)("div",{className:i()("tour-kit-overlay",{"--visible":t})})}},6424:function(e,t,n){"use strict";var r=n(9307),o=n(4065);n(6372);t.Z=e=>{let{config:t}=e;const n=(0,r.useRef)(document.createElement("div")).current;return(0,r.useEffect)((()=>(n.classList.add("tour-kit-portal"),document.body.appendChild(n),()=>{document.body.removeChild(n)})),[n]),(0,r.createElement)("div",null,(0,r.createPortal)((0,r.createElement)(o.Z,{config:t}),n))}},8074:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(2779),s=n.n(i),c=n(3082),a=n(7858);t.Z=e=>{let{referenceElement:t}=e;const n=(0,o.useRef)(null),i=[(0,o.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n,popper:r}=e;return"bottom"===t?[0,-(n.height+(r.height-n.height)/2)]:[0,0]}}})),[])],{styles:u,attributes:l}=(0,c.Z)(t,n.current,i),d=t?{style:null==u?void 0:u.popper,...null==l?void 0:l.popper}:null;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.Z,{visible:!d}),(0,o.createElement)("div",(0,r.Z)({className:s()("tour-kit-spotlight",{"--visible":!!d}),ref:n},d)))}},7474:function(e,t,n){"use strict";var r=n(9307);t.Z=e=>{const[t,n]=(0,r.useState)(!1),o=(0,r.useCallback)((()=>{var t;document.hasFocus()&&null!==(t=e.current)&&void 0!==t&&t.contains(document.activeElement)?n(!0):n(!1)}),[e]),i=(0,r.useCallback)((t=>{var r;null!==(r=e.current)&&void 0!==r&&r.contains(t.target)?n(!0):n(!1)}),[e]),s=(0,r.useCallback)((t=>{var r;"Tab"===t.key&&(null!==(r=e.current)&&void 0!==r&&r.contains(t.target)?n(!0):n(!1))}),[e]);return(0,r.useEffect)((()=>(document.addEventListener("focusin",o),document.addEventListener("mousedown",i),document.addEventListener("keyup",s),()=>{document.removeEventListener("focusin",o),document.removeEventListener("mousedown",i),document.removeEventListener("keyup",s)})),[e,o,s,i]),t}},5386:function(e,t,n){"use strict";var r=n(9307);t.Z=e=>{const[t,n]=(0,r.useState)(),[o,i]=(0,r.useState)(),s=(0,r.useCallback)((e=>{let n=!1;"Tab"===e.key&&(e.shiftKey?document.activeElement===t&&(null==o||o.focus(),n=!0):document.activeElement===o&&(null==t||t.focus(),n=!0)),n&&(e.preventDefault(),e.stopPropagation())}),[t,o]);(0,r.useEffect)((()=>{var t;const r=null===(t=e.current)||void 0===t?void 0:t.querySelectorAll(["a[href]:not([disabled])","button:not([disabled])","textarea:not([disabled])",'input[type="text"]:not([disabled])','input[type="radio"]:not([disabled])','input[type="checkbox"]:not([disabled])',"select:not([disabled])"].toString());return r&&r.length&&(n(r[0]),i(r[r.length-1])),document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}}),[e,s])}},9946:function(e,t,n){"use strict";var r=n(9307);t.Z=e=>{let{onEscape:t,onArrowRight:n,onArrowLeft:o}=e;const i=(0,r.useCallback)((e=>{let r=!1;switch(e.key){case"Escape":t&&(t(),r=!0);break;case"ArrowRight":n&&(n(),r=!0);break;case"ArrowLeft":o&&(o(),r=!0)}r&&(e.preventDefault(),e.stopPropagation())}),[t,n,o]);(0,r.useEffect)((()=>(document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)})),[i])}},3082:function(e,t,n){"use strict";var r=n(6194);t.Z=(e,t,n)=>{const{styles:o,attributes:i}=(0,r.D)(e,t,{strategy:"fixed",modifiers:n});return e?{styles:o,attributes:i}:{}}},6951:function(e,t,n){"use strict";n.d(t,{_z:function(){return u}});var r=n(7896),o=n(9307),i=n(9321),s=n(4333),c=n(9196);function a(e){const[t,n]=(0,c.useState)((()=>({isActive:(0,i.kV)(e),breakpoint:e})));return(0,c.useEffect)((()=>(0,i.Sp)(e,(function(t){n((n=>n.isActive===t&&n.breakpoint===e?n:{isActive:t,breakpoint:e}))}))),[e]),e===t.breakpoint?t.isActive:(0,i.kV)(e)}function u(){return a(i.Gh)}(0,s.createHigherOrderComponent)((e=>(0,c.forwardRef)(((t,n)=>{const s=a(i.Gh);return(0,o.createElement)(e,(0,r.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithMobileBreakpoint"),(0,s.createHigherOrderComponent)((e=>(0,c.forwardRef)(((t,n)=>{const s=a(i.oh);return(0,o.createElement)(e,(0,r.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithDesktopBreakpoint")},9321:function(e,t,n){"use strict";n.d(t,{Gh:function(){return o},oh:function(){return i},O9:function(){return d},kV:function(){return f},Sp:function(){return p},tq:function(){return m}});const r=769,o="<480px",i=">960px",s="undefined"==typeof window||!window.matchMedia,c=()=>null;function a(e){return{addListener:()=>{},removeListener:()=>{},...e}}function u(e){const{min:t,max:n}=e??{};return void 0!==t&&void 0!==n?s?a({matches:r>t&&r<=n}):window.matchMedia(`(min-width: ${t+1}px) and (max-width: ${n}px)`):void 0!==t?s?a({matches:r>t}):window.matchMedia(`(min-width: ${t+1}px)`):void 0!==n&&(s?a({matches:r<=n}):window.matchMedia(`(max-width: ${n}px)`))}const l={"<480px":u({max:480}),"<660px":u({max:660}),"<782px":u({max:782}),"<800px":u({max:800}),"<960px":u({max:960}),"<1040px":u({max:1040}),"<1280px":u({max:1280}),"<1400px":u({max:1400}),">480px":u({min:480}),">660px":u({min:660}),">782px":u({min:782}),">800px":u({min:800}),">960px":u({min:960}),">1040px":u({min:1040}),">1280px":u({min:1280}),">1400px":u({min:1400}),"480px-660px":u({min:480,max:660}),"660px-960px":u({min:660,max:960}),"480px-960px":u({min:480,max:960})};function d(e){if(l.hasOwnProperty(e))return l[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function f(e){const t=d(e);return t?t.matches:void 0}function p(e,t){if(!t)return c;const n=d(e);if(n&&!s){const e=e=>t(e.matches);return n.addListener(e),()=>n.removeListener(e)}return c}function m(){return f(o)}},8049:function(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(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}!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(2632)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,o,i,s=null;function c(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(!c.enabled)return;const i=c,s=Number(new Date),a=s-(n||s);i.diff=a,i.prev=n,i.curr=s,n=s,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");let u=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,((e,n)=>{if("%%"===e)return"%";u++;const o=t.formatters[n];if("function"==typeof o){const t=r[u];e=o.call(i,t),r.splice(u,1),u--}return e})),t.formatArgs.call(i,r);const l=i.log||t.log;l.apply(i,r)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=r,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(c),c}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<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3790:function(e,t,n){"use strict";e.exports=n.p+"images/draft-post-19715e868be3c82bb350.svg"},5275:function(e,t,n){"use strict";e.exports=n.p+"images/post-published-ca9ddfc04a7c889a72d2.svg"},9711:function(e,t,n){"use strict";e.exports=n.p+"images/block-picker-baad989c3eaa6c60cc56.svg"},6595:function(e,t,n){"use strict";e.exports=n.p+"images/editor-a1965f46cfb792664a14.svg"},5486:function(e,t,n){"use strict";e.exports=n.p+"images/preview-a3fa241fd59995b1fc42.svg"},7821:function(e,t,n){"use strict";e.exports=n.p+"images/private-761a5407869f32039248.svg"},9196:function(e){"use strict";e.exports=window.React},3288:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},2819:function(e){"use strict";e.exports=window.lodash},6989:function(e){"use strict";e.exports=window.wp.apiFetch},5609:function(e){"use strict";e.exports=window.wp.components},4333:function(e){"use strict";e.exports=window.wp.compose},9818:function(e){"use strict";e.exports=window.wp.data},3418:function(e){"use strict";e.exports=window.wp.dataControls},9307:function(e){"use strict";e.exports=window.wp.element},2694:function(e){"use strict";e.exports=window.wp.hooks},5736:function(e){"use strict";e.exports=window.wp.i18n},462:function(e){"use strict";e.exports=window.wp.nux},8817:function(e){"use strict";e.exports=window.wp.plugins},444:function(e){"use strict";e.exports=window.wp.primitives},6483:function(e){"use strict";e.exports=window.wp.url},7896:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}();var r={};!function(){"use strict";n.r(r);var e=n(1970);n(1568),n(7869);(0,e.z2)()}(),window.EditingToolkit=r}();
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&e.push(c);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,o),r(n)},e.once("error",i)),e.once(t,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,s,u;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=a(e))>0&&s.length>o&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function f(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):m(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var a=i[e];if(void 0===a)return!1;if("function"==typeof a)r(a,this,t);else{var u=a.length,l=m(a,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,s;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4495:function(e,t,n){"use strict";var r=n(212),o=n(9561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},8032:function(e,t,n){"use strict";var r=n(212),o=n(4495),i=n(713),s=n(9561),c=r.sum32,a=r.sum32_4,u=r.sum32_5,l=i.ch32,d=i.maj32,f=i.s0_256,p=i.s1_256,m=i.g0_256,h=i.g1_256,g=o.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(w,g),e.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(h(n[r-2]),n[r-7],m(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],b=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var E=u(_,p(w),l(w,y,b),this.k[r],n[r]),x=c(f(o),d(o,i,g));_=b,b=y,y=w,w=c(v,E),v=g,g=i,i=o,o=c(E,x)}this.h[0]=c(this.h[0],o),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],g),this.h[3]=c(this.h[3],v),this.h[4]=c(this.h[4],w),this.h[5]=c(this.h[5],y),this.h[6]=c(this.h[6],b),this.h[7]=c(this.h[7],_)},w.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?s(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(9561),o=n(1285);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(e,o)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=s(o)),n+=a(o.toString(16))}return n},t.zero2=c,t.zero8=a,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var s=new Array(i/4),c=0,a=t;c<s.length;c++,a+=4){var u;u="big"===o?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],s[c]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,s=(i<r?1:0)+n+o;e[t]=s>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,s,c){var a=0,u=t;return a+=(u=u+r>>>0)<t?1:0,a+=(u=u+i>>>0)<i?1:0,e+n+o+s+(a+=(u=u+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,s,c){return t+r+i+c>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,s,c,a,u){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+i>>>0)<i?1:0,l+=(d=d+c>>>0)<c?1:0,e+n+o+s+a+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,s,c,a,u){return t+r+i+c+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},3186:function(){},8005:function(){},5773:function(){},7777:function(){},7710:function(){},6372:function(){},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,r=60*n,o=24*r,i=7*o,s=365.25*o;function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,a){a=a||{};var u=typeof e;if("string"===u&&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 a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&isFinite(e))return a.long?function(e){var i=Math.abs(e);if(i>=o)return c(e,i,o,"day");if(i>=r)return c(e,i,r,"hour");if(i>=n)return c(e,i,n,"minute");if(i>=t)return c(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=r)return Math.round(e/r)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=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))}},8435:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var c,a,u,l;if(Array.isArray(e)){if((c=e.length)!=s.length)return!1;for(a=c;0!=a--;)if(!i(e[a],s[a]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(l=e.entries();!(a=l.next()).done;)if(!s.has(a.value[0]))return!1;for(l=e.entries();!(a=l.next()).done;)if(!i(a.value[1],s.get(a.value[0])))return!1;return!0}if(r&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(l=e.entries();!(a=l.next()).done;)if(!s.has(a.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((c=e.length)!=s.length)return!1;for(a=c;0!=a--;)if(e[a]!==s[a])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((c=(u=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(a=c;0!=a--;)if(!Object.prototype.hasOwnProperty.call(s,u[a]))return!1;if(t&&e instanceof Element)return!1;for(a=c;0!=a--;)if(("_owner"!==u[a]&&"__v"!==u[a]&&"__o"!==u[a]||!e.$$typeof)&&!i(e[u[a]],s[u[a]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},6194:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var r=n(9196),o=n(7295),i=n(8435),s=n.n(i),c=n(855),a=[],u=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),u={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||a},l=r.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=l[0],f=l[1],p=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);f({styles:(0,c.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,c.sq)(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),m=r.useMemo((function(){var e={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[p,{name:"applyStyles",enabled:!1}])};return s()(i.current,e)?i.current||e:(i.current=e,e)}),[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,p]),h=r.useRef();return(0,c.LI)((function(){h.current&&h.current.setOptions(m)}),[m]),(0,c.LI)((function(){if(null!=e&&null!=t){var r=(n.createPopper||o.fi)(e,t,m);return h.current=r,function(){r.destroy(),h.current=null}}}),[e,t,n.createPopper]),{state:h.current?h.current.state:null,styles:d.styles,attributes:d.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}}},855:function(e,t,n){"use strict";n.d(t,{sq:function(){return o},LI:function(){return i}});var r=n(9196),o=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},i="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},7869:function(e,t,n){"use strict";var r=n(9307),o=(n(3945),n(849)),i=n(4655),s=n(5609),c=n(9818),a=n(8817),u=n(6483),l=n(3867),d=n(9935),f=n(1970),p=n(374),m=n(2753);function h(){var e;const[t]=(0,r.useState)((0,u.getQueryArg)(window.location.href,"showDraftPostModal")),{show:n,isLoaded:a,variant:d,isManuallyOpened:h,isNewPageLayoutModalOpen:g}=(0,c.useSelect)((e=>{const t=e("automattic/wpcom-welcome-guide"),n=e("automattic/starter-page-layouts");return{show:t.isWelcomeGuideShown(),isLoaded:t.isWelcomeGuideStatusLoaded(),variant:t.getWelcomeGuideVariant(),isManuallyOpened:t.isWelcomeGuideManuallyOpened(),isNewPageLayoutModalOpen:null==n?void 0:n.isOpen()}}),[]),v=null===(e=(0,c.useDispatch)("automattic/starter-page-layouts"))||void 0===e?void 0:e.setOpenState,{fetchWelcomeGuideStatus:w}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");return(0,r.useEffect)((()=>{a||w()}),[w,a]),!n||g?null:d===f.yn&&!h&&v?(v("OPEN_FOR_BLANK_CANVAS"),null):d===f.Sz?(0,r.createElement)(o.Iw,{localeSlug:window.wpcomBlockEditorNuxLocale??i.OP},t?(0,r.createElement)(l.Z,null):(0,r.createElement)(m.Z,null)):"modal"===d&&s.Guide&&s.GuidePage?(0,r.createElement)(p.Z,null):null}(0,a.registerPlugin)("wpcom-block-editor-nux",{render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h,null),(0,r.createElement)(d.Z,null))})},1568:function(e,t,n){"use strict";var r=n(9818);n(462);const o=(0,r.subscribe)((()=>{var e;(0,r.dispatch)("core/nux").disableTips(),null!==(e=(0,r.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,r.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),o()}));(0,r.subscribe)((()=>{var e;(0,r.select)("core/nux").areTipsEnabled()&&((0,r.dispatch)("core/nux").disableTips(),(0,r.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0)),null!==(e=(0,r.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,r.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,r.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0}))}))},3867:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(5609),s=n(9818),c=n(2694),a=n(5736),u=n(3634),l=n(3790);n(3186);const __=a.__,d="a8c.wpcom-block-editor.closeEditor";t.Z=()=>{const e=window._currentSiteId,t=(0,s.useSelect)((t=>t("automattic/site").getPrimarySiteDomain(e))),n=`/home/${(null==t?void 0:t.domain)||window.location.hostname}`,[a,f]=(0,r.useState)(!0),p=()=>f(!1);return(0,r.createElement)(u.Z,{isOpen:a,className:"wpcom-block-editor-draft-post-modal",title:__("Write your first post","full-site-editing"),description:__("It’s time to flex those writing muscles and start drafting your first post!","full-site-editing"),imageSrc:l,actionButtons:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.Button,{isPrimary:!0,onClick:p},__("Start writing","full-site-editing")),(0,r.createElement)(i.Button,{isSecondary:!0,onClick:()=>{(0,c.hasAction)(d)?(0,c.doAction)(d,n):window.location.href=`https://wordpress.com${n}`}},__("I'm not ready","full-site-editing"))),onRequestClose:p,onOpen:()=>(0,o.jN)("calypso_editor_wpcom_draft_post_modal_show")})}},3634:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(2779),s=n.n(i);n(9196),n(8005);t.Z=e=>{let{isOpen:t,className:n,title:i,description:c,imageSrc:a,actionButtons:u,onRequestClose:l,onOpen:d}=e;const f=(0,r.useRef)(null);return(0,r.useEffect)((()=>{!f.current&&t&&(null==d||d()),f.current=t}),[f,t,d]),t?(0,r.createElement)(o.Modal,{className:s()("wpcom-block-editor-nux-modal",n),open:t,title:"",onRequestClose:l},(0,r.createElement)("div",{className:"wpcom-block-editor-nux-modal__image-container"},(0,r.createElement)("img",{src:a,alt:i})),(0,r.createElement)("h1",{className:"wpcom-block-editor-nux-modal__title"},i),(0,r.createElement)("p",{className:"wpcom-block-editor-nux-modal__description"},c),(0,r.createElement)("div",{className:"wpcom-block-editor-nux-modal__buttons"},u)):null}},9935:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(5609),s=n(9818),c=n(5736),a=n(3634),u=n(5275);n(5773);const __=c.__;t.Z=()=>{const{link:e}=(0,s.useSelect)((e=>e("core/editor").getCurrentPost())),t=(0,s.useSelect)((e=>e("core/editor").getCurrentPostType())),n=(0,s.useSelect)((e=>e("core/editor").isCurrentPostPublished())),c=(0,r.useRef)(n),l=(0,s.useSelect)((e=>e("automattic/wpcom-welcome-guide").getShouldShowFirstPostPublishedModal())),[d,f]=(0,r.useState)(!1),{fetchShouldShowFirstPostPublishedModal:p,setShouldShowFirstPostPublishedModal:m}=(0,s.useDispatch)("automattic/wpcom-welcome-guide");return(0,r.useEffect)((()=>{p()}),[p]),(0,r.useEffect)((()=>{l&&!c.current&&n&&"post"===t&&(c.current=n,m(!1),window.setTimeout((()=>{f(!0)})))}),[t,l,n,m]),(0,r.createElement)(a.Z,{isOpen:d,className:"wpcom-block-editor-post-published-modal",title:__("Your first post is published!","full-site-editing"),description:__("Congratulations! You did it. View your post to see how it will look on your site.","full-site-editing"),imageSrc:u,actionButtons:(0,r.createElement)(i.Button,{isPrimary:!0,href:e},__("View Post","full-site-editing")),onRequestClose:()=>f(!1),onOpen:()=>(0,o.jN)("calypso_editor_wpcom_first_post_published_modal_show")})}},3945:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},1970:function(e,t,n){"use strict";n.d(t,{Sz:function(){return c},yn:function(){return a},z2:function(){return f}});var r=n(6989),o=n.n(r),i=n(9818),s=n(3418);n(3288);const c="tour",a="blank-canvas-tour",u=(0,i.combineReducers)({welcomeGuideManuallyOpened:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;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:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;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:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET":return t.tourRating;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},welcomeGuideVariant:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.variant;case"WPCOM_HAS_USED_PATTERNS_MODAL":return e===a?c:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return c;default:return e}},shouldShowFirstPostPublishedModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;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}}}),l={*fetchWelcomeGuideStatus(){return{type:"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS",response:yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/nux"})}},*fetchShouldShowFirstPostPublishedModal(){return{type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:(yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/should-show-first-post-published-modal"})).should_show_first_post_published_modal}},setShowWelcomeGuide:function(e){let{openedManually:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o()({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"}),setShouldShowFirstPostPublishedModal:e=>({type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:e}),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?c:e.welcomeGuideVariant,getShouldShowFirstPostPublishedModal:e=>e.shouldShowFirstPostPublishedModal};function f(){return(0,i.registerStore)("automattic/wpcom-welcome-guide",{reducer:u,actions:l,selectors:d,controls:s.controls,persist:!0})}},374:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(6115),s=n(5609),c=n(9818),a=n(5736),u=n(9711),l=n(6595),d=n(5486),f=n(7821);n(7777);const __=a.__;function p(e){let{pageNumber:t,isLastPage:n,alignBottom:r=!1,heading:c,description:a,imgSrc:u}=e;return(0,o.useEffect)((()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_slide_view",{slide_number:t,is_last_slide:n,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})}),[]),(0,o.createElement)(s.GuidePage,{className:"wpcom-block-editor-nux__page"},(0,o.createElement)("div",{className:"wpcom-block-editor-nux__text"},(0,o.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},c),(0,o.createElement)("div",{className:"wpcom-block-editor-nux__description"},a)),(0,o.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,o.createElement)("img",{key:u,src:u,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(r?" align-bottom":"")})))}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,c.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:a}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");if((0,o.useEffect)((()=>{var r;e&&!t&&(0,i.jN)("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding,is_manually_opened:n})}),[n,t,e]),!e||t)return null;const m=[{heading:__("Welcome to your website","full-site-editing"),description:__("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:l,alignBottom:!0},{heading:__("Add or edit your content","full-site-editing"),description:__("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:u},{heading:__("Preview your site as you go","full-site-editing"),description:__("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:d,alignBottom:!0},{heading:__("Hidden until you’re ready","full-site-editing"),description:__("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","full-site-editing"),imgSrc:f,alignBottom:!0}];return(0,o.createElement)(s.Guide,{className:"wpcom-block-editor-nux",contentLabel:__("Welcome to your website","full-site-editing"),finishButtonText:__("Get started","full-site-editing"),onFinish:()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),a(!1,{openedManually:!1})}},m.map(((e,t)=>(0,o.createElement)(p,(0,r.Z)({key:e.heading,pageNumber:t+1,isLastPage:t===m.length-1},e)))))}},805:function(e,t,n){"use strict";n.d(t,{O:function(){return r.O}});var r=n(2028)},2028:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(6951);function o(e){const t=(0,r._z)();e.forEach((e=>{const n=e.meta.imgSrc;(new window.Image).src=t&&n.mobile?n.mobile.src:n.desktop.src}))}},8574:function(e,t,n){"use strict";var r=n(9307),o=n(444);const i=(0,r.createElement)(o.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.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"}));t.Z=i},6139:function(e,t,n){"use strict";var r=n(9307),o=n(444);const i=(0,r.createElement)(o.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.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"}));t.Z=i},4308:function(e,t,n){"use strict";var r=n(9307),o=n(444);const i=(0,r.createElement)(o.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.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"}));t.Z=i},9425:function(e,t,n){"use strict";var r=n(9307),o=n(444);const i=(0,r.createElement)(o.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,r.createElement)(o.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"}));t.Z=i},9483:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9307),o=n(5609),i=n(5736),s=n(444),c=n(2819);const __=i.__;function a(e){let{currentPage:t,numberOfPages:n,setCurrentPage:s}=e;return(0,r.createElement)("ul",{className:"components-guide__page-control","aria-label":__("Guide controls","full-site-editing")},(0,c.times)(n,(e=>(0,r.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},(0,r.createElement)(o.Button,{key:e,icon:(0,r.createElement)(u,{isSelected:e===t}),"aria-label":(0,i.sprintf)(__("Page %1$d of %2$d","full-site-editing"),e+1,n),onClick:()=>s(e)})))))}const u=e=>{let{isSelected:t}=e;return(0,r.createElement)(s.SVG,{width:"6",height:"6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(s.Circle,{cx:"3",cy:"3",r:"3",fill:t?"#32373C":"#E1E3E6"}))}},2069:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(9321),s=n(5609),c=n(9818),a=n(5736),u=n(8565),l=n(2779),d=n.n(l),f=n(6139),p=n(4308),m=n(9425),h=n(9483);n(7710);const __=a.__;function g(e){let{currentStepIndex:t,lastStepIndex:n,onDismiss:o,setCurrentStepIndex:i,onNextStepProgression:c,onPreviousStepProgression:a,setInitialFocusedElement:u}=e;const l=__("Try it out!","full-site-editing"),d=__("Next","full-site-editing");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.Z,{currentPage:t,numberOfPages:n+1,setCurrentPage:i}),(0,r.createElement)("div",null,0===t?(0,r.createElement)(s.Button,{isTertiary:!0,onClick:o("no-thanks-btn")},__("Skip","full-site-editing")):(0,r.createElement)(s.Button,{isTertiary:!0,onClick:a},__("Back","full-site-editing")),(0,r.createElement)(s.Button,{className:"welcome-tour-card__next-btn",isPrimary:!0,onClick:c,ref:u},0===t?l:d)))}function v(e){let{onMinimize:t,onDismiss:n}=e;return(0,r.createElement)("div",{className:"welcome-tour-card__overlay-controls"},(0,r.createElement)(s.Flex,null,(0,r.createElement)(s.Button,{label:__("Minimize Tour","full-site-editing"),isPrimary:!0,className:"welcome-tour-card__minimize-icon",icon:f.Z,iconSize:24,onClick:t}),(0,r.createElement)(s.Button,{label:__("Close Tour","full-site-editing"),isPrimary:!0,icon:u.Z,iconSize:24,onClick:n("close-btn")})))}function w(e){let{isGutenboarding:t}=e,n=!1;const i=(0,c.useSelect)((e=>e("automattic/wpcom-welcome-guide").getTourRating())),{setTourRating:a}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");!n&&i&&(n=!0);const u=e=>{n||(n=!0,a(e?"thumbs-up":"thumbs-down"),(0,o.jN)("calypso_editor_wpcom_tour_rate",{thumbs_up:e,is_gutenboarding:t}))};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"welcome-tour__end-text"},__("Did you find this guide helpful?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)(s.Button,{"aria-label":__("Rate thumbs up","full-site-editing"),className:d()("welcome-tour__end-icon",{active:"thumbs-up"===i}),disabled:n,icon:m.Z,onClick:()=>u(!0),iconSize:24}),(0,r.createElement)(s.Button,{"aria-label":__("Rate thumbs down","full-site-editing"),className:d()("welcome-tour__end-icon",{active:"thumbs-down"===i}),disabled:n,icon:p.Z,onClick:()=>u(!1),iconSize:24})))}t.Z=function(e){var t,n;let{cardContent:c,currentStepIndex:a,justMaximized:u,lastStepIndex:l,onMinimize:f,onDismiss:p,setJustMaximized:m,setCurrentStepIndex:h,onNextStepProgression:y,onPreviousStepProgression:b,isGutenboarding:_,setInitialFocusedElement:E}=e;const{description:x,heading:C,imgSrc:k,imgNeedsPadding:S}=c,Z=a===l;var O;O=()=>{u?m(!1):(0,o.jN)("calypso_editor_wpcom_tour_slide_view",{slide_number:a+1,is_last_slide:Z,slide_heading:C,is_gutenboarding:_})},(0,r.useEffect)(O,[]);const M=d()("welcome-tour-card__media",{"is-with-extra-padding":(0,i.tq)()&&S});return(0,r.createElement)(s.Card,{className:"welcome-tour-card",isElevated:!0},(0,r.createElement)(v,{onDismiss:p,onMinimize:f}),(0,r.createElement)(s.CardMedia,{className:M},(0,r.createElement)("picture",null,k.mobile&&(0,r.createElement)("source",{srcSet:k.mobile.src,type:k.mobile.type,media:null===(t=(0,i.O9)(i.Gh))||void 0===t?void 0:t.media}),(0,r.createElement)("img",{alt:__("Editor Welcome Tour","full-site-editing"),src:null===(n=k.desktop)||void 0===n?void 0:n.src}))),(0,r.createElement)(s.CardBody,null,(0,r.createElement)("h2",{className:"welcome-tour-card__heading"},C),(0,r.createElement)("p",{className:"welcome-tour-card__description"},x,Z?(0,r.createElement)(s.Button,{className:"welcome-tour-card__description",isTertiary:!0,onClick:()=>h(0),ref:E},__("Restart tour","full-site-editing")):null)),(0,r.createElement)(s.CardFooter,null,Z?(0,r.createElement)(w,{isGutenboarding:_}):(0,r.createElement)(g,{currentStepIndex:a,lastStepIndex:l,onDismiss:p,setCurrentStepIndex:h,onNextStepProgression:y,onPreviousStepProgression:b,setInitialFocusedElement:E})))}},7520:function(e,t,n){"use strict";n.d(t,{M:function(){return i},m:function(){return s}});var r=n(9307);const o=(0,r.createContext)({}),i=e=>{let{children:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.createElement)(o.Provider,{value:{justMaximized:n,setJustMaximized:i}},t)},s=()=>(0,r.useContext)(o)},2753:function(e,t,n){"use strict";var r=n(9307),o=n(6115),i=n(849),s=n(6424),c=n(9321),a=n(9818),u=n(805),l=n(7520),d=n(4316),f=n(6778),p=n(8953);n(7710);function m(){var e;const t=(0,i.bU)(),{setShowWelcomeGuide:n}=(0,a.useDispatch)("automattic/wpcom-welcome-guide"),m=null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,h=()=>new URLSearchParams(document.location.search).has("welcome-tour-next"),g=(0,p.Z)(t,h()).filter((e=>!(e.meta.isDesktopOnly&&(0,c.tq)()))),{setJustMaximized:v}=(0,l.m)();(0,u.O)(g);const w={steps:g,renderers:{tourStep:f.Z,tourMinimized:d.Z},closeHandler:(e,t,r)=>{(0,o.jN)("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:m,slide_number:t+1,action:r}),n(!1,{openedManually:!1})},options:{callbacks:{onMinimize:e=>{(0,o.jN)("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:m,slide_number:e+1})},onMaximize:e=>{v(!0),(0,o.jN)("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:m,slide_number:e+1})}},effects:{__experimental__spotlight:h(),arrowIndicator:!1},popperModifiers:[(0,r.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n}=e;if("bottom"===t){const e=document.querySelector(".edit-post-header").getBoundingClientRect();return[0,e.height+e.y-(n.height+n.y)+16]}return[0,0]}}})),[])],className:"wpcom-editor-welcome-tour"}};return(0,r.createElement)(s.Z,{config:w})}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,a.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()}))),s=(0,i.bU)();return(0,u.O)([(0,p.Z)(s)[0]]),(0,r.useEffect)((()=>{var r;(e||t)&&(0,o.jN)("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding,is_manually_opened:n})}),[t,n,e]),!e||t?null:(0,r.createElement)(l.M,null,(0,r.createElement)(m,null))}},4316:function(e,t,n){"use strict";var r=n(9307),o=n(5609),i=n(5736),s=n(5869),c=n(8565),a=n(8574);const __=i.__;t.Z=e=>{let{steps:t,onMaximize:n,onDismiss:u,currentStepIndex:l}=e;const d=l+1,f=t.length-1+1;return(0,r.createElement)(o.Flex,{gap:0,className:"wpcom-editor-welcome-tour__minimized"},(0,r.createElement)(o.Button,{onClick:n,"aria-label":__("Resume Tour","full-site-editing")},(0,r.createElement)(o.Flex,{gap:13},(0,r.createElement)("p",null,(0,r.createInterpolateElement)((0,i.sprintf)(__("Resume welcome tour <span>(%1$d/%2$d)</span>","full-site-editing"),d,f),{span:(0,r.createElement)("span",{className:"wpcom-editor-welcome-tour__minimized-tour-index"})})),(0,r.createElement)(s.Z,{icon:a.Z,size:24}))),(0,r.createElement)(o.Button,{onClick:u("close-btn-minimized"),"aria-label":__("Close Tour","full-site-editing")},(0,r.createElement)(s.Z,{icon:c.Z,size:24})))}},6778:function(e,t,n){"use strict";var r=n(9307),o=n(2069),i=n(7520);t.Z=e=>{var t;let{steps:n,currentStepIndex:s,onDismiss:c,onNext:a,onPrevious:u,onMinimize:l,setInitialFocusedElement:d,onGoToStep:f}=e;const p=n.length-1,m=null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,{justMaximized:h,setJustMaximized:g}=(0,i.m)();return(0,r.createElement)(o.Z,{cardContent:n[s].meta,currentStepIndex:s,justMaximized:h,lastStepIndex:p,onDismiss:c,onMinimize:l,setJustMaximized:g,setCurrentStepIndex:f,onNextStepProgression:a,onPreviousStepProgression:u,isGutenboarding:m,setInitialFocusedElement:d})}},8953:function(e,t,n){"use strict";var r=n(9307),o=n(7498),i=n(5609),s=n(5736);const __=s.__;function c(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"}},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"}}}[e]}const a=[{desktop:null,mobile:null},{desktop:null,mobile:null},{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"},{desktop:null,mobile:null},{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)"},{desktop:".edit-post-header .edit-post-header__toolbar .components-button.editor-history__undo"},{mobile:null,desktop:null},{desktop:null,mobile:null}];t.Z=function(e,t){return[{referenceElements:t&&a[0],meta:{heading:__("Welcome to WordPress!","full-site-editing"),description:__("Take this short, interactive tour to learn the fundamentals of the WordPress editor.","full-site-editing"),imgSrc:c("welcome"),animation:null,imgNeedsPadding:!0}},{referenceElements:t&&a[1],meta:{heading:__("Everything is a block","full-site-editing"),description:__("In the WordPress Editor, paragraphs, images, and videos are all blocks.","full-site-editing"),imgSrc:c("allBlocks"),animation:null}},{referenceElements:t&&a[2],meta:{heading:__("Adding a new block","full-site-editing"),description:__("Click + to open the inserter. Then click the block you want to add.","full-site-editing"),imgSrc:c("addBlock"),animation:"block-inserter",imgNeedsPadding:!0}},{referenceElements:t&&a[3],meta:{heading:__("Click a block to change it","full-site-editing"),description:__("Use the toolbar to change the appearance of a selected block. Try making it bold.","full-site-editing"),imgSrc:c("makeBold"),animation:null}},{referenceElements:t&&a[4],meta:{heading:__("More Options","full-site-editing"),description:__("Click the settings icon to see even more options.","full-site-editing"),imgSrc:c("moreOptions"),animation:null,imgNeedsPadding:!0}},{referenceElements:t&&a[5],meta:{heading:__("Undo any mistake","full-site-editing"),description:__("Click the Undo button if you've made a mistake.","full-site-editing"),imgSrc:c("undo"),animation:"undo-button",isDesktopOnly:!0}},{referenceElements:t&&a[6],meta:{heading:__("Drag & drop","full-site-editing"),description:__("To move blocks around, click and drag the handle.","full-site-editing"),imgSrc:c("moveBlock"),animation:"undo-button",imgNeedsPadding:!0}},{referenceElements:t&&a[7],meta:{heading:__("Congratulations!","full-site-editing"),description:(0,r.createInterpolateElement)(__("You've learned the basics. Remember, your site is private until you <link_to_launch_site_docs>decide to launch</link_to_launch_site_docs>. View the <link_to_editor_docs>block editing docs</link_to_editor_docs> to learn more.","full-site-editing"),{link_to_launch_site_docs:(0,r.createElement)(i.ExternalLink,{href:(0,o.aq)("https://wordpress.com/support/settings/privacy-settings/#launch-your-site",e)}),link_to_editor_docs:(0,r.createElement)(i.ExternalLink,{href:(0,o.aq)("https://wordpress.com/support/wordpress-editor/",e)})}),imgSrc:c("finish"),animation:"block-inserter"}}]}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN}});n(1694),n(6209),n(9377);var r=n(9792);n(3722)},9377:function(e,t,n){"use strict";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r=n(2699),o=n(4898),i=(n(3421),n(2819)),s=(n(9377),n(6209),n(9358));n(1694);const c=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let a,u=Promise.resolve();function l(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,o.ve)("//stats.wp.com/w.js?63"));const d=new r.EventEmitter;function f(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,i.includes)(c,e)){if(a){const e=a(t);t={...t,...e}}t=(0,i.omitBy)(t,(e=>void 0===e)),(0,s.Z)('Recording event "%s" with actual props %o',e,t),l(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(9792)},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),o=n.n(r);t.Z=o()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return u},bU:function(){return d}});var r=n(7896),o=n(9307),i=n(4333),s=n(5736),c=n(9196);const a=(0,c.createContext)(null),u=e=>{let{children:t,localeSlug:n}=e;return(0,o.createElement)(a.Provider,{value:n},t)};function l(){var e,t;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";const t=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=e.toLowerCase();return(t.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(e=s.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function d(){const e=(0,c.useContext)(a),t=!!e,[n,r]=(0,c.useState)(l());return(0,c.useEffect)((()=>{if(!t)return r(l()),s.subscribe((()=>{r(l())}))}),[t]),e||n||"en"}(0,i.createHigherOrderComponent)((e=>t=>{const n=d();return(0,o.createElement)(e,(0,r.Z)({locale:n},t))}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{OP:function(){return r},GG:function(){return o},iT:function(){return i},xn:function(){return s},Xb:function(){return c},hI:function(){return a},mL:function(){return u},vS:function(){return l},_r:function(){return d}});const r="en",o=["en","ja","es","pt","fr","pt-br"],i=["en","fr","de","es"],s=["en","fr","de","es"],c={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},a=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["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"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{aq:function(){return h}});var r=n(7896),o=n(9307),i=n(4333),s=n(9196),c=n(849),a=n(4655);const u="http://__domain__.invalid",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(n,r)=>(t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${a.Xb[r]||r}.${e}`),n)},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(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)},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(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},p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,r)=>f(e,t,"prefix")(n,r)},m={"wordpress.com/support/":p(a.hI),"wordpress.com/forums/":p(a.mL),"wordpress.com/blog/":p(a.GG,/^\/blog\/?$/),"wordpress.com/tos/":p(a.vS),"wordpress.com/wp-admin/":l("wordpress.com",a.vS),"wordpress.com/wp-login.php":l("wordpress.com",a.vS),"jetpack.com":l("jetpack.com",a._r),"en.support.wordpress.com":d("/support",a.hI),"en.blog.wordpress.com":d("/blog",a.GG,/^\/$/),"en.forums.wordpress.com":d("/forums",a.mL),"automattic.com/privacy/":p(a.iT),"automattic.com/cookies/":p(a.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),p(a.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:p(a.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:p(a.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:p(a.vS)(e,t),"wordpress.com/log-in/":(e,t,n)=>n?e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,r)=>f(e,t,"suffix")(n,r)}(a.vS)(e,t)};function h(e,t){let n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(e),u)}catch(s){return e}if(n.origin===u)return e;n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/"));const o=n.pathname.substr(0,1+n.pathname.indexOf("/",1));if("en.wordpress.com"===n.host&&(n.host="wordpress.com"),"/"+t+"/"===o)return e;const i=[n.host,n.host+o,n.host+n.pathname];for(let c=i.length-1;c>=0;c--)if(i[c]in m)return m[i[c]](n,t,r).href;return e}function g(){const e=(0,c.bU)();return(0,s.useCallback)(((t,n,r)=>h(t,n||e,r)),[e])}(0,i.createHigherOrderComponent)((e=>t=>{const n=g();return(0,o.createElement)(e,(0,r.Z)({localizeUrl:n},t))}),"withLocalizeUrl")},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return c},lZ:function(){return a},_W:function(){return l},Yt:function(){return d}});var r=n(8049);const o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function c(e){return s().has(e)}function a(e,t){const n=s();c(e)?(o(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(o(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=s(),r=n.get(e);if(r){o(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),r.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function l(){const e=this.getAttribute("src");o(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");o(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return c},k:function(){return a}});var r=n(8049),o=n.n(r),i=n(3340);const s=o()("lib/load-script/dom-operations");function c(e){s(`Creating script element for "${e}"`);const t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=i._W,t.onerror=i.Yt,t}function a(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return c}});var r=n(8049),o=n.n(r),i=n(3340),s=n(5606);o()("package/load-script");function c(e,t){if(!(0,i.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,i.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,i.lZ)(e,t)}},8626:function(e,t,n){"use strict";var r=n(9307),o=(n(9196),n(7474)),i=n(5386),s=n(9946);t.Z=e=>{let{onMinimize:t,onDismiss:n,onNextStepProgression:c,onPreviousStepProgression:a,tourContainerRef:u,isMinimized:l}=e;return(0,o.Z)(u)?l?(0,r.createElement)((function(){return(0,s.Z)({onEscape:n("esc-key-minimized")}),null}),null):(0,r.createElement)((function(){return(0,s.Z)({onEscape:t,onArrowRight:c,onArrowLeft:a}),(0,i.Z)(u),null}),null):null}},4065:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(6951),s=n(2779),c=n.n(s),a=n(3082),u=n(8626),l=n(7858),d=n(8074);const f=(e,t)=>{"function"==typeof t&&t(e)};t.Z=e=>{var t,n,s,p,m,h,g,v,w,y,b,_,E,x,C,k,S;let{config:Z}=e;const O=(0,o.useRef)(null),M=(0,o.useRef)(null),[P,L]=(0,o.useState)(null),[F,j]=(0,o.useState)(!1),[R,N]=(0,o.useState)(0),z=Z.steps.length-1,A=(0,i._z)(),T=(null===(t=Z.steps[R].referenceElements)||void 0===t?void 0:t[A?"mobile":"desktop"])||null,W=T?document.querySelector(T):null,I=()=>{var e,t;return!1!==(null===(e=Z.options)||void 0===e||null===(t=e.effects)||void 0===t?void 0:t.arrowIndicator)&&!(!W||F)},{styles:G,attributes:D}=(0,a.Z)(W,M.current,[{name:"preventOverflow",options:{rootBoundary:"document",padding:16}},{name:"arrow",options:{padding:12}},{name:"offset",options:{offset:[0,I()?12:10]}},...(null===(n=Z.options)||void 0===n?void 0:n.popperModifiers)||[]]),B=!F&&W?{style:null==G?void 0:G.popper,...null==D?void 0:D.popper}:null,U={style:null==G?void 0:G.arrow,...null==D?void 0:D.arrow},$=(0,o.useCallback)((()=>{var e,t;return!(null===(e=Z.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.__experimental__spotlight)&&!F}),[null===(s=Z.options)||void 0===s||null===(p=s.effects)||void 0===p?void 0:p.__experimental__spotlight,F]),H=(0,o.useCallback)((()=>{var e,t;return!($()||null===(e=Z.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.overlay)&&!F}),[null===(m=Z.options)||void 0===m||null===(h=m.effects)||void 0===h?void 0:h.overlay,F,$]),V=(0,o.useCallback)((e=>()=>{Z.closeHandler(Z.steps,R,e)}),[Z,R]),q=(0,o.useCallback)((()=>{var e,t;z>R&&N(R+1),f(R,null===(e=Z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onNextStep)}),[null===(g=Z.options)||void 0===g||null===(v=g.callbacks)||void 0===v?void 0:v.onNextStep,R,z]),K=(0,o.useCallback)((()=>{var e,t;R&&N(R-1),f(R,null===(e=Z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onPreviousStep)}),[null===(w=Z.options)||void 0===w||null===(y=w.callbacks)||void 0===y?void 0:y.onPreviousStep,R]),Y=(0,o.useCallback)((e=>{var t,n;N(e),f(R,null===(t=Z.options)||void 0===t||null===(n=t.callbacks)||void 0===n?void 0:n.onGoToStep)}),[null===(b=Z.options)||void 0===b||null===(_=b.callbacks)||void 0===_?void 0:_.onGoToStep,R]),J=(0,o.useCallback)((()=>{var e,t;j(!0),f(R,null===(e=Z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMinimize)}),[null===(E=Z.options)||void 0===E||null===(x=E.callbacks)||void 0===x?void 0:x.onMinimize,R]),X=(0,o.useCallback)((()=>{var e,t;j(!1),f(R,null===(e=Z.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMaximize)}),[null===(C=Z.options)||void 0===C||null===(k=C.callbacks)||void 0===k?void 0:k.onMaximize,R]);(0,o.useEffect)((()=>{setTimeout((()=>null==P?void 0:P.focus()))}),[P]);const Q=c()("tour-kit-frame",null===(S=Z.options)||void 0===S?void 0:S.className,A?"is-mobile":"is-desktop");return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(u.Z,{onMinimize:J,onDismiss:V,onNextStepProgression:q,onPreviousStepProgression:K,tourContainerRef:O,isMinimized:F}),(0,o.createElement)("div",{className:Q,ref:O},H()&&(0,o.createElement)(l.Z,{visible:!0}),$()&&(0,o.createElement)(d.Z,{referenceElement:W}),(0,o.createElement)("div",(0,r.Z)({className:"tour-kit-frame__container",ref:M},B),I()&&(0,o.createElement)("div",(0,r.Z)({className:"tour-kit-frame__arrow","data-popper-arrow":!0},U)),F?(0,o.createElement)(o.Fragment,null,Z.renderers.tourMinimized({steps:Z.steps,currentStepIndex:R,onMaximize:X,onDismiss:V})):(0,o.createElement)(o.Fragment,null,Z.renderers.tourStep({steps:Z.steps,currentStepIndex:R,onDismiss:V,onNext:q,onPrevious:K,onMinimize:J,setInitialFocusedElement:L,onGoToStep:Y})))))}},7858:function(e,t,n){"use strict";var r=n(9307),o=n(2779),i=n.n(o);t.Z=e=>{let{visible:t}=e;return(0,r.createElement)("div",{className:i()("tour-kit-overlay",{"--visible":t})})}},6424:function(e,t,n){"use strict";var r=n(9307),o=n(4065);n(6372);t.Z=e=>{let{config:t}=e;const n=(0,r.useRef)(document.createElement("div")).current;return(0,r.useEffect)((()=>(n.classList.add("tour-kit-portal"),document.body.appendChild(n),()=>{document.body.removeChild(n)})),[n]),(0,r.createElement)("div",null,(0,r.createPortal)((0,r.createElement)(o.Z,{config:t}),n))}},8074:function(e,t,n){"use strict";var r=n(7896),o=n(9307),i=n(2779),s=n.n(i),c=n(3082),a=n(7858);t.Z=e=>{let{referenceElement:t}=e;const n=(0,o.useRef)(null),i=[(0,o.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n,popper:r}=e;return"bottom"===t?[0,-(n.height+(r.height-n.height)/2)]:[0,0]}}})),[])],{styles:u,attributes:l}=(0,c.Z)(t,n.current,i),d=t?{style:null==u?void 0:u.popper,...null==l?void 0:l.popper}:null;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.Z,{visible:!d}),(0,o.createElement)("div",(0,r.Z)({className:s()("tour-kit-spotlight",{"--visible":!!d}),ref:n},d)))}},7474:function(e,t,n){"use strict";var r=n(9307);t.Z=e=>{const[t,n]=(0,r.useState)(!1),o=(0,r.useCallback)((()=>{var t;document.hasFocus()&&null!==(t=e.current)&&void 0!==t&&t.contains(document.activeElement)?n(!0):n(!1)}),[e]),i=(0,r.useCallback)((t=>{var r;null!==(r=e.current)&&void 0!==r&&r.contains(t.target)?n(!0):n(!1)}),[e]),s=(0,r.useCallback)((t=>{var r;"Tab"===t.key&&(null!==(r=e.current)&&void 0!==r&&r.contains(t.target)?n(!0):n(!1))}),[e]);return(0,r.useEffect)((()=>(document.addEventListener("focusin",o),document.addEventListener("mousedown",i),document.addEventListener("keyup",s),()=>{document.removeEventListener("focusin",o),document.removeEventListener("mousedown",i),document.removeEventListener("keyup",s)})),[e,o,s,i]),t}},5386:function(e,t,n){"use strict";var r=n(9307);t.Z=e=>{const[t,n]=(0,r.useState)(),[o,i]=(0,r.useState)(),s=(0,r.useCallback)((e=>{let n=!1;"Tab"===e.key&&(e.shiftKey?document.activeElement===t&&(null==o||o.focus(),n=!0):document.activeElement===o&&(null==t||t.focus(),n=!0)),n&&(e.preventDefault(),e.stopPropagation())}),[t,o]);(0,r.useEffect)((()=>{var t;const r=null===(t=e.current)||void 0===t?void 0:t.querySelectorAll(["a[href]:not([disabled])","button:not([disabled])","textarea:not([disabled])",'input[type="text"]:not([disabled])','input[type="radio"]:not([disabled])','input[type="checkbox"]:not([disabled])',"select:not([disabled])"].toString());return r&&r.length&&(n(r[0]),i(r[r.length-1])),document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}}),[e,s])}},9946:function(e,t,n){"use strict";var r=n(9307);t.Z=e=>{let{onEscape:t,onArrowRight:n,onArrowLeft:o}=e;const i=(0,r.useCallback)((e=>{let r=!1;switch(e.key){case"Escape":t&&(t(),r=!0);break;case"ArrowRight":n&&(n(),r=!0);break;case"ArrowLeft":o&&(o(),r=!0)}r&&(e.preventDefault(),e.stopPropagation())}),[t,n,o]);(0,r.useEffect)((()=>(document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)})),[i])}},3082:function(e,t,n){"use strict";var r=n(6194);t.Z=(e,t,n)=>{const{styles:o,attributes:i}=(0,r.D)(e,t,{strategy:"fixed",modifiers:n});return e?{styles:o,attributes:i}:{}}},6951:function(e,t,n){"use strict";n.d(t,{_z:function(){return u}});var r=n(7896),o=n(9307),i=n(9321),s=n(4333),c=n(9196);function a(e){const[t,n]=(0,c.useState)((()=>({isActive:(0,i.kV)(e),breakpoint:e})));return(0,c.useEffect)((()=>(0,i.Sp)(e,(function(t){n((n=>n.isActive===t&&n.breakpoint===e?n:{isActive:t,breakpoint:e}))}))),[e]),e===t.breakpoint?t.isActive:(0,i.kV)(e)}function u(){return a(i.Gh)}(0,s.createHigherOrderComponent)((e=>(0,c.forwardRef)(((t,n)=>{const s=a(i.Gh);return(0,o.createElement)(e,(0,r.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithMobileBreakpoint"),(0,s.createHigherOrderComponent)((e=>(0,c.forwardRef)(((t,n)=>{const s=a(i.oh);return(0,o.createElement)(e,(0,r.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithDesktopBreakpoint")},9321:function(e,t,n){"use strict";n.d(t,{Gh:function(){return o},oh:function(){return i},O9:function(){return d},kV:function(){return f},Sp:function(){return p},tq:function(){return m}});const r=769,o="<480px",i=">960px",s="undefined"==typeof window||!window.matchMedia,c=()=>null;function a(e){return{addListener:()=>{},removeListener:()=>{},...e}}function u(e){const{min:t,max:n}=e??{};return void 0!==t&&void 0!==n?s?a({matches:r>t&&r<=n}):window.matchMedia(`(min-width: ${t+1}px) and (max-width: ${n}px)`):void 0!==t?s?a({matches:r>t}):window.matchMedia(`(min-width: ${t+1}px)`):void 0!==n&&(s?a({matches:r<=n}):window.matchMedia(`(max-width: ${n}px)`))}const l={"<480px":u({max:480}),"<660px":u({max:660}),"<782px":u({max:782}),"<800px":u({max:800}),"<960px":u({max:960}),"<1040px":u({max:1040}),"<1280px":u({max:1280}),"<1400px":u({max:1400}),">480px":u({min:480}),">660px":u({min:660}),">782px":u({min:782}),">800px":u({min:800}),">960px":u({min:960}),">1040px":u({min:1040}),">1280px":u({min:1280}),">1400px":u({min:1400}),"480px-660px":u({min:480,max:660}),"660px-960px":u({min:660,max:960}),"480px-960px":u({min:480,max:960})};function d(e){if(l.hasOwnProperty(e))return l[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function f(e){const t=d(e);return t?t.matches:void 0}function p(e,t){if(!t)return c;const n=d(e);if(n&&!s){const e=e=>t(e.matches);return n.addListener(e),()=>n.removeListener(e)}return c}function m(){return f(o)}},8049:function(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(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}!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(2632)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,o,i,s=null;function c(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(!c.enabled)return;const i=c,s=Number(new Date),a=s-(n||s);i.diff=a,i.prev=n,i.curr=s,n=s,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");let u=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,((e,n)=>{if("%%"===e)return"%";u++;const o=t.formatters[n];if("function"==typeof o){const t=r[u];e=o.call(i,t),r.splice(u,1),u--}return e})),t.formatArgs.call(i,r);const l=i.log||t.log;l.apply(i,r)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=r,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(c),c}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<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3790:function(e,t,n){"use strict";e.exports=n.p+"images/draft-post-19715e868be3c82bb350.svg"},5275:function(e,t,n){"use strict";e.exports=n.p+"images/post-published-ca9ddfc04a7c889a72d2.svg"},9711:function(e,t,n){"use strict";e.exports=n.p+"images/block-picker-baad989c3eaa6c60cc56.svg"},6595:function(e,t,n){"use strict";e.exports=n.p+"images/editor-a1965f46cfb792664a14.svg"},5486:function(e,t,n){"use strict";e.exports=n.p+"images/preview-a3fa241fd59995b1fc42.svg"},7821:function(e,t,n){"use strict";e.exports=n.p+"images/private-761a5407869f32039248.svg"},9196:function(e){"use strict";e.exports=window.React},3288:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},2819:function(e){"use strict";e.exports=window.lodash},6989:function(e){"use strict";e.exports=window.wp.apiFetch},5609:function(e){"use strict";e.exports=window.wp.components},4333:function(e){"use strict";e.exports=window.wp.compose},9818:function(e){"use strict";e.exports=window.wp.data},3418:function(e){"use strict";e.exports=window.wp.dataControls},9307:function(e){"use strict";e.exports=window.wp.element},2694:function(e){"use strict";e.exports=window.wp.hooks},5736:function(e){"use strict";e.exports=window.wp.i18n},462:function(e){"use strict";e.exports=window.wp.nux},8817:function(e){"use strict";e.exports=window.wp.plugins},444:function(e){"use strict";e.exports=window.wp.primitives},6483:function(e){"use strict";e.exports=window.wp.url},7896:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}();var r={};!function(){"use strict";n.r(r);var e=n(1970);n(1568),n(7869);(0,e.z2)()}(),window.EditingToolkit=r}();