Full Site Editing - Version 3.14545

Version Description

Download this release

Release Info

Developer automattic
Plugin Icon wp plugin Full Site Editing
Version 3.14545
Comparing to
See all releases

Code changes from version 3.14479 to 3.14545

editor-site-launch/dist/gutenboarding-launch.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '448b3b6e17afe7c8aaeec33d8e866398');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '422443f3618a8eab12a77ef56bbddf89');
editor-site-launch/dist/gutenboarding-launch.js CHANGED
@@ -8,7 +8,7 @@
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
- */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,u,l=i(e),s=1;s<arguments.length;s++){for(var c in a=Object(arguments[s]))n.call(a,c)&&(l[c]=a[c]);if(t){u=t(a);for(var d=0;d<u.length;d++)r.call(a,u[d])&&(l[u[d]]=a[u[d]])}}return l}},9500:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=u&&l&&"function"==typeof l.get?l.get:null,c=u&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,y="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,E=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),w=n(3260).custom,x=w&&O(w)?w:null,P="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function C(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function N(e){return String(e).replace(/"/g,"&quot;")}function I(e){return!("[object Array]"!==M(e)||P&&"object"==typeof e&&P in e)}function O(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,i){var u=n||{};if(Z(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!Z(u,"customInspect")||u.customInspect;if("boolean"!=typeof l)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(Z(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return F(t,u);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var g=void 0===u.depth?5:u.depth;if(void 0===r&&(r=0),r>=g&&g>0&&"object"==typeof t)return I(t)?"[Array]":"[Object]";var b=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(u,r);if(void 0===i)i=[];else if(L(i,t)>=0)return"[Circular]";function E(t,n,o){if(n&&(i=i.slice()).push(n),o){var a={depth:u.depth};return Z(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(t,a,r+1,i)}return e(t,u,r+1,i)}if("function"==typeof t){var w=function(e){if(e.name)return e.name;var t=v.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),k=B(t,E);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(k.length>0?" { "+k.join(", ")+" }":"")}if(O(t)){var T=S?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||S?T:R(T)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var U="<"+String(t.nodeName).toLowerCase(),G=t.attributes||[],H=0;H<G.length;H++)U+=" "+G[H].name+"="+C(N(G[H].value),"double",u);return U+=">",t.childNodes&&t.childNodes.length&&(U+="..."),U+="</"+String(t.nodeName).toLowerCase()+">"}if(I(t)){if(0===t.length)return"[]";var V=B(t,E);return b&&!function(e){for(var t=0;t<e.length;t++)if(L(e[t],"\n")>=0)return!1;return!0}(V)?"["+j(V,b)+"]":"[ "+V.join(", ")+" ]"}if(function(e){return!("[object Error]"!==M(e)||P&&"object"==typeof e&&P in e)}(t)){var z=B(t,E);return 0===z.length?"["+String(t)+"]":"{ ["+String(t)+"] "+z.join(", ")+" }"}if("object"==typeof t&&l){if(x&&"function"==typeof t[x])return t[x]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{s.call(e)}catch(U){return!0}return e instanceof Map}catch(t){}return!1}(t)){var W=[];return a.call(t,(function(e,n){W.push(E(n,t,!0)+" => "+E(e,t))})),$("Map",o.call(t),W,b)}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var Y=[];return c.call(t,(function(e){Y.push(E(e,t))})),$("Set",s.call(t),Y,b)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(U){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return D("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(U){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return D("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return D("WeakRef");if(function(e){return!("[object Number]"!==M(e)||P&&"object"==typeof e&&P in e)}(t))return R(E(Number(t)));if(function(e){if(!e||"object"!=typeof e||!y)return!1;try{return y.call(e),!0}catch(t){}return!1}(t))return R(E(y.call(t)));if(function(e){return!("[object Boolean]"!==M(e)||P&&"object"==typeof e&&P in e)}(t))return R(m.call(t));if(function(e){return!("[object String]"!==M(e)||P&&"object"==typeof e&&P in e)}(t))return R(E(String(t)));if(!function(e){return!("[object Date]"!==M(e)||P&&"object"==typeof e&&P in e)}(t)&&!function(e){return!("[object RegExp]"!==M(e)||P&&"object"==typeof e&&P in e)}(t)){var q=B(t,E),K=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",X=!K&&P&&Object(t)===t&&P in t?M(t).slice(8,-1):J?"Object":"",Q=(K||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(X||J?"["+[].concat(X||[],J||[]).join(": ")+"] ":"");return 0===q.length?Q+"{}":b?Q+"{"+j(q,b)+"}":Q+"{ "+q.join(", ")+" }"}return String(t)};var k=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return k.call(e,t)}function M(e){return g.call(e)}function L(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function F(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return F(e.slice(0,t.maxStringLength),t)+r}return C(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,T),"single",t)}function T(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function R(e){return"Object("+e+")"}function D(e){return e+" { ? }"}function $(e,t,n,r){return e+" ("+t+") {"+(r?j(n,r):n.join(", "))+"}"}function j(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function B(e,t){var n=I(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Z(e,i)?t(e[i],e):""}var o,a="function"==typeof b?b(e):[];if(S){o={};for(var u=0;u<a.length;u++)o["$"+a[u]]=a[u]}for(var l in e)Z(e,l)&&(n&&String(Number(l))===l&&l<e.length||S&&o["$"+l]instanceof Symbol||(/[^\w$]/.test(l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof b)for(var s=0;s<a.length;s++)E.call(e,a[s])&&r.push("["+t(a[s])+"]: "+t(e[a[s]],e));return r}},8650:function(e){var t,n=window.ProgressEvent,r=!!n;try{t=new n("loaded"),r="loaded"===t.type,t=null}catch(i){r=!1}e.exports=r?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},8262:function(e,t,n){"use strict";var r=n(3586);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},3980:function(e,t,n){e.exports=n(8262)()},3586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5527:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},9126:function(e,t,n){"use strict";var r=n(6845),i=n(9166),o=n(5527);e.exports={formats:o,parse:i,stringify:r}},9166:function(e,t,n){"use strict";var r=n(2493),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(o),s=u?o.slice(0,u.index):o,c=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var d=0;n.depth>0&&null!==(u=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+o.slice(u.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,u=e[o];if("[]"===u&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var s="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(s,10);n.parseArrays||""!==s?!isNaN(c)&&u!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[s]=i:a={0:i}}i=a}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,s={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?m="utf-8":"utf8=%26%2310003%3B"===f[n]&&(m="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var g,h,v=f[n],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(g=t.decoder(v,a.decoder,m,"key"),h=t.strictNullHandling?null:""):(g=t.decoder(v.slice(0,b),a.decoder,m,"key"),h=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),h&&t.interpretNumericEntities&&"iso-8859-1"===m&&(h=u(h)),v.indexOf("[]=")>-1&&(h=o(h)?[h]:h),i.call(s,g)?s[g]=r.combine(s[g],h):s[g]=h}return s}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(c),p=0;p<f.length;++p){var m=f[p],g=s(m,c[m],n,"string"==typeof e);d=r.merge(d,g,n)}return!0===n.allowSparse?d:r.compact(d)}},6845:function(e,t,n){"use strict";var r=n(4294),i=n(2493),o=n(5527),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,s=Array.prototype.push,c=function(e,t){s.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m=function e(t,n,o,a,u,s,d,f,m,g,h,v,y,b,_){var S,E=t;if(_.has(t))throw new RangeError("Cyclic object value");if("function"==typeof d?E=d(n,E):E instanceof Date?E=g(E):"comma"===o&&l(E)&&(E=i.maybeMap(E,(function(e){return e instanceof Date?g(e):e}))),null===E){if(a)return s&&!y?s(n,p.encoder,b,"key",h):n;E=""}if("string"==typeof(S=E)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(E))return s?[v(y?n:s(n,p.encoder,b,"key",h))+"="+v(s(E,p.encoder,b,"value",h))]:[v(n)+"="+v(String(E))];var A,w=[];if(void 0===E)return w;if("comma"===o&&l(E))A=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(d))A=d;else{var x=Object.keys(E);A=f?x.sort(f):x}for(var P=0;P<A.length;++P){var C=A[P],N="object"==typeof C&&void 0!==C.value?C.value:E[C];if(!u||null!==N){var I=l(E)?"function"==typeof o?o(n,C):n:n+(m?"."+C:"["+C+"]");_.set(t,!0);var O=r();c(w,e(N,I,o,a,u,s,d,f,m,g,h,v,y,b,O))}}return w};e.exports=function(e,t){var n,i=e,s=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=p.filter;return("function"==typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof s.filter?i=(0,s.filter)("",i):l(s.filter)&&(n=s.filter);var d,f=[];if("object"!=typeof i||null===i)return"";d=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=u[d];n||(n=Object.keys(i)),s.sort&&n.sort(s.sort);for(var h=r(),v=0;v<n.length;++v){var y=n[v];s.skipNulls&&null===i[y]||c(f,m(i[y],y,g,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,h))}var b=f.join(s.delimiter),_=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},2493:function(e,t,n){"use strict";var r=n(5527),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],u=Object.keys(a),l=0;l<u.length;++l){var s=u[l],c=a[s];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:s}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",s=0;s<u.length;++s){var c=u.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?l+=u.charAt(s):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(s)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=u(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},3631:function(e,t,n){"use strict";var r=n(3804),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(7201),a=n(4983),u=n(6590),l="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function c(e,t,n,r){var o,u=typeof e;if("undefined"!==u&&"boolean"!==u||(e=null),null===e||"string"===u||"number"===u||"object"===u&&e.$$typeof===i)return n(r,e,""===t?"."+s(e,0):t),1;var d=0,f=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)d+=c(o=e[p],f+s(o,p),n,r);else{var m=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(m){0;for(var g,h=m.call(e),v=0;!(g=h.next()).done;)d+=c(o=g.value,f+s(o,v++),n,r)}else if("object"===u){0;var y=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return d}var d=/\/+/g;function f(e){return(""+e).replace(d,"$&/")}var p,m,g=h,h=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},v=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function y(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function b(e,t,n){var i,a,u=e.result,l=e.keyPrefix,s=e.func,c=e.context,d=s.call(c,t,e.count++);Array.isArray(d)?_(d,u,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(i=d,a=l+(!d.key||t&&t.key===d.key?"":f(d.key)+"/")+n,d=r.cloneElement(i,{key:a},void 0!==i.props?i.props.children:void 0)),u.push(d))}function _(e,t,n,r,i){var o="";null!=n&&(o=f(n)+"/");var a=y.getPooled(t,o,r,i);!function(e,t,n){null==e||c(e,"",t,n)}(e,b,a),y.release(a)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},(m=y).instancePool=[],m.getPooled=p||g,m.poolSize||(m.poolSize=10),m.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return u(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return u(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)_(e[n],t,n,o.thatReturnsArgument);return t}},4294:function(e,t,n){"use strict";var r=n(7286),i=n(2680),o=n(9500),a=r("%TypeError%"),u=r("%WeakMap%",!0),l=r("%Map%",!0),s=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),m=i("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return s(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(l){if(t)return m(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,i){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),c(e,r,i)):l?(t||(t=new l),p(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},9558:function(e,t,n){"use strict";n.d(t,{MS:function(){return r},uj:function(){return i},G$:function(){return o},Ab:function(){return a},Fr:function(){return u},h5:function(){return l},K$:function(){return s},lK:function(){return c}});var r="-ms-",i="-moz-",o="-webkit-",a="comm",u="rule",l="decl",s="@import",c="@keyframes"},2959:function(e,t,n){"use strict";n.d(t,{qR:function(){return l},cD:function(){return s},Ji:function(){return c}});var r=n(9558),i=n(508),o=n(5205),a=n(2050),u=n(4907);function l(e){var t=(0,i.Ei)(e);return function(n,r,i,o){for(var a="",u=0;u<t;u++)a+=e[u](n,r,i,o)||"";return a}}function s(e){return function(t){t.root||(t=t.return)&&e(t)}}function c(e,t,n,l){if(!e.return)switch(e.type){case r.h5:e.return=(0,u.O)(e.value,e.length);break;case r.lK:return(0,a.q)([(0,o.JG)((0,i.gx)(e.value,"@","@"+r.G$),e,"")],l);case r.Fr:if(e.length)return(0,i.$e)(e.props,(function(t){switch((0,i.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,a.q)([(0,o.JG)((0,i.gx)(t,/:(read-\w+)/,":"+r.uj+"$1"),e,"")],l);case"::placeholder":return(0,a.q)([(0,o.JG)((0,i.gx)(t,/:(plac\w+)/,":"+r.G$+"input-$1"),e,""),(0,o.JG)((0,i.gx)(t,/:(plac\w+)/,":"+r.uj+"$1"),e,""),(0,o.JG)((0,i.gx)(t,/:(plac\w+)/,r.MS+"input-$1"),e,"")],l)}return""}))}}},2328:function(e,t,n){"use strict";n.d(t,{MY:function(){return a}});var r=n(9558),i=n(508),o=n(5205);function a(e){return(0,o.cE)(u("",null,null,null,[""],e=(0,o.un)(e),0,[0],e))}function u(e,t,n,r,a,d,f,p,m){for(var g=0,h=0,v=f,y=0,b=0,_=0,S=1,E=1,A=1,w=0,x="",P=a,C=d,N=r,I=x;E;)switch(_=w,w=(0,o.lp)()){case 34:case 39:case 91:case 40:I+=(0,o.iF)(w);break;case 9:case 10:case 13:case 32:I+=(0,o.Qb)(_);break;case 92:I+=(0,o.kq)((0,o.Ud)()-1,7);continue;case 47:switch((0,o.fj)()){case 42:case 47:(0,i.R3)(s((0,o.q6)((0,o.lp)(),(0,o.Ud)()),t,n),m);break;default:I+="/"}break;case 123*S:p[g++]=(0,i.to)(I)*A;case 125*S:case 59:case 0:switch(w){case 0:case 125:E=0;case 59+h:b>0&&(0,i.to)(I)-v&&(0,i.R3)(b>32?c(I+";",r,n,v-1):c((0,i.gx)(I," ","")+";",r,n,v-2),m);break;case 59:I+=";";default:if((0,i.R3)(N=l(I,t,n,g,h,a,p,x,P=[],C=[],v),d),123===w)if(0===h)u(I,t,N,N,P,d,v,p,C);else switch(y){case 100:case 109:case 115:u(e,N,N,r&&(0,i.R3)(l(e,N,N,0,0,a,p,x,a,P=[],v),C),a,C,v,p,r?P:C);break;default:u(I,N,N,N,[""],C,v,p,C)}}g=h=b=0,S=A=1,x=I="",v=f;break;case 58:v=1+(0,i.to)(I),b=_;default:if(S<1)if(123==w)--S;else if(125==w&&0==S++&&125==(0,o.mp)())continue;switch(I+=(0,i.Dp)(w),w*S){case 38:A=h>0?1:(I+="\f",-1);break;case 44:p[g++]=((0,i.to)(I)-1)*A,A=1;break;case 64:45===(0,o.fj)()&&(I+=(0,o.iF)((0,o.lp)())),y=(0,o.fj)(),h=(0,i.to)(x=I+=(0,o.QU)((0,o.Ud)())),w++;break;case 45:45===_&&2==(0,i.to)(I)&&(S=0)}}return d}function l(e,t,n,a,u,l,s,c,d,f,p){for(var m=u-1,g=0===u?l:[""],h=(0,i.Ei)(g),v=0,y=0,b=0;v<a;++v)for(var _=0,S=(0,i.tb)(e,m+1,m=(0,i.Wn)(y=s[v])),E=e;_<h;++_)(E=(0,i.fy)(y>0?g[_]+" "+S:(0,i.gx)(S,/&\f/g,g[_])))&&(d[b++]=E);return(0,o.dH)(e,t,n,0===u?r.Fr:c,d,f,p)}function s(e,t,n){return(0,o.dH)(e,t,n,r.Ab,(0,i.Dp)((0,o.Tb)()),(0,i.tb)(e,2,-2),0)}function c(e,t,n,a){return(0,o.dH)(e,t,n,r.h5,(0,i.tb)(e,0,a),(0,i.tb)(e,a+1,-1),a)}},4907:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(9558),i=n(508);function o(e,t){switch((0,i.vp)(e,t)){case 5103:return r.G$+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r.G$+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return r.G$+e+r.uj+e+r.MS+e+e;case 6828:case 4268:return r.G$+e+r.MS+e+e;case 6165:return r.G$+e+r.MS+"flex-"+e+e;case 5187:return r.G$+e+(0,i.gx)(e,/(\w+).+(:[^]+)/,r.G$+"box-$1$2"+r.MS+"flex-$1$2")+e;case 5443:return r.G$+e+r.MS+"flex-item-"+(0,i.gx)(e,/flex-|-self/,"")+e;case 4675:return r.G$+e+r.MS+"flex-line-pack"+(0,i.gx)(e,/align-content|flex-|-self/,"")+e;case 5548:return r.G$+e+r.MS+(0,i.gx)(e,"shrink","negative")+e;case 5292:return r.G$+e+r.MS+(0,i.gx)(e,"basis","preferred-size")+e;case 6060:return r.G$+"box-"+(0,i.gx)(e,"-grow","")+r.G$+e+r.MS+(0,i.gx)(e,"grow","positive")+e;case 4554:return r.G$+(0,i.gx)(e,/([^-])(transform)/g,"$1"+r.G$+"$2")+e;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(e,/(zoom-|grab)/,r.G$+"$1"),/(image-set)/,r.G$+"$1"),e,"")+e;case 5495:case 3959:return(0,i.gx)(e,/(image-set\([^]*)/,r.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(e,/(.+:)(flex-)?(.*)/,r.G$+"box-pack:$3"+r.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r.G$+e+e;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(e,/(.+)-inline(.+)/,r.G$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.to)(e)-1-t>6)switch((0,i.uO)(e,t+1)){case 109:if(45!==(0,i.uO)(e,t+4))break;case 102:return(0,i.gx)(e,/(.+:)(.+)-([^]+)/,"$1"+r.G$+"$2-$3$1"+r.uj+(108==(0,i.uO)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,i.Cw)(e,"stretch")?o((0,i.gx)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,i.uO)(e,t+1))break;case 6444:switch((0,i.uO)(e,(0,i.to)(e)-3-(~(0,i.Cw)(e,"!important")&&10))){case 107:return(0,i.gx)(e,":",":"+r.G$)+e;case 101:return(0,i.gx)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+r.G$+(45===(0,i.uO)(e,14)?"inline-":"")+"box$3$1"+r.G$+"$2$3$1"+r.MS+"$2box$3")+e}break;case 5936:switch((0,i.uO)(e,t+11)){case 114:return r.G$+e+r.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return r.G$+e+r.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return r.G$+e+r.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return r.G$+e+r.MS+e+e}return e}},2050:function(e,t,n){"use strict";n.d(t,{q:function(){return o},P:function(){return a}});var r=n(9558),i=n(508);function o(e,t){for(var n="",r=(0,i.Ei)(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function a(e,t,n,a){switch(e.type){case r.K$:case r.h5:return e.return=e.return||e.value;case r.Ab:return"";case r.Fr:e.value=e.props.join(",")}return(0,i.to)(n=o(e.children,a))?e.return=e.value+"{"+n+"}":""}},5205:function(e,t,n){"use strict";n.d(t,{FK:function(){return u},dH:function(){return c},JG:function(){return d},Tb:function(){return f},mp:function(){return p},lp:function(){return m},fj:function(){return g},Ud:function(){return h},r:function(){return y},un:function(){return b},cE:function(){return _},iF:function(){return S},Qb:function(){return E},kq:function(){return A},q6:function(){return x},QU:function(){return P}});var r=n(508),i=1,o=1,a=0,u=0,l=0,s="";function c(e,t,n,r,a,u,l){return{value:e,root:t,parent:n,type:r,props:a,children:u,line:i,column:o,length:l,return:""}}function d(e,t,n){return c(e,t.root,t.parent,n,t.props,t.children,0)}function f(){return l}function p(){return l=u>0?(0,r.uO)(s,--u):0,o--,10===l&&(o=1,i--),l}function m(){return l=u<a?(0,r.uO)(s,u++):0,o++,10===l&&(o=1,i++),l}function g(){return(0,r.uO)(s,u)}function h(){return u}function v(e,t){return(0,r.tb)(s,e,t)}function y(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b(e){return i=o=1,a=(0,r.to)(s=e),u=0,[]}function _(e){return s="",e}function S(e){return(0,r.fy)(v(u-1,w(91===e?e+2:40===e?e+1:e)))}function E(e){for(;(l=g())&&l<33;)m();return y(e)>2||y(l)>3?"":" "}function A(e,t){for(;--t&&m()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return v(e,h()+(t<6&&32==g()&&32==m()))}function w(e){for(;m();)switch(l){case e:return u;case 34:case 39:return w(34===e||39===e?e:l);case 40:41===e&&w(e);break;case 92:m()}return u}function x(e,t){for(;m()&&e+l!==57&&(e+l!==84||47!==g()););return"/*"+v(t,u-1)+"*"+(0,r.Dp)(47===e?e:m())}function P(e){for(;!y(g());)m();return v(e,u)}},508:function(e,t,n){"use strict";n.d(t,{Wn:function(){return r},Dp:function(){return i},vp:function(){return o},fy:function(){return a},EQ:function(){return u},gx:function(){return l},Cw:function(){return s},uO:function(){return c},tb:function(){return d},to:function(){return f},Ei:function(){return p},R3:function(){return m},$e:function(){return g}});var r=Math.abs,i=String.fromCharCode;function o(e,t){return(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3)}function a(e){return e.trim()}function u(e,t){return(e=t.exec(e))?e[0]:e}function l(e,t,n){return e.replace(t,n)}function s(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function m(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1184),i={contextDelimiter:"",onMissingKey:null};function o(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},i)this.options[n]=void 0!==t&&n in t?t[n]:i[n]}o.prototype.getPluralForm=function(e,t){var n,i,o,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(i=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=(0,r.Z)(i)),a=this.pluralForms[e]=o),a(t)},o.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,u;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(u=this.data[e][a])&&u[o]?u[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var r=function(){try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},7989:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(849),u=n(4655),l=n(6357),s=n(5707),c=n(5799),d=n(1200),f=n(3804),p=n.n(f),m=n(365),g=n(1157),h=n(9095),v=n(8318),y=n(8550);r="a8c-editor-site-launch",i={render:function(){var e,t,n=(0,s.useSelect)((function(e){return e(v.sC).getState()})).isSidebarOpen,r=(0,s.useDispatch)(v.sC),i=r.closeSidebar,d=r.setSidebarFullscreen,f=r.unsetSidebarFullscreen;return p().useEffect((function(){window.innerWidth<782?d():f()}),[n,d,f]),p().useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,c.hasAction)(e)&&(0,c.doAction)(e,{hidden:n})}),[n]),n?(0,o.createElement)(a.Iw,{localeSlug:null!==(e=null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)&&void 0!==e?e:u.OP},(0,o.createElement)(l.Z.Provider,{value:{siteId:window._currentSiteId,flow:g.OS,redirectTo:y.gQ,openCheckout:y.Rd,getCurrentLaunchFlowUrl:y.O0,isInIframe:(0,m.y)()}},(0,o.createElement)(h.Z,{onClose:i}))):null}},(0,d.registerPlugin)(r,i)},1157:function(e,t,n){"use strict";n.d(t,{OS:function(){return r},Js:function(){return i},nU:function(){return o}});var r="gutenboarding",i="focused-launch",o="should_launch"},6915:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=n(5707),a=n(8675),u=(n(3804),n(8318)),l=n(8374);n(4919);t.Z=function(e){var t,n=e.onMenuItemClick,__=(0,a.useI18n)().__,s=(0,o.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),c=s.currentStep,d=s.LaunchStep,f=s.LaunchSequence,p=s.isStepCompleted,m=s.isFlowCompleted,g=(t={},(0,r.Z)(t,d.Name,__("Name your site","full-site-editing")),(0,r.Z)(t,d.Domain,__("Select a domain","full-site-editing")),(0,r.Z)(t,d.Plan,__("Select a plan","full-site-editing")),(0,r.Z)(t,d.Final,__("Launch your site","full-site-editing")),t),h=(0,o.useDispatch)(u.sC).setStep;return(0,i.createElement)("div",{className:"nux-launch-menu"},(0,i.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,i.createElement)("div",{className:"nux-launch-menu__item-group"},f.map((function(e){return(0,i.createElement)(l.Z,{key:e,title:g[e],isCompleted:p(e),isCurrent:e===c,onClick:function(){return function(e){h(e),n(e)}(e)},isDisabled:e===d.Final&&!m})}))))}},8374:function(e,t,n){"use strict";var r=n(3027),i=n(7997),o=n(5869),a=n(9806),u=n(2779),l=n.n(u),s=(n(3804),(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(i.Circle,{cx:"12",cy:"12",r:"5"})));t.Z=function(e){var t=e.title,n=e.isCompleted,u=e.isCurrent,c=e.isDisabled,d=e.onClick;return(0,r.createElement)(i.Button,{className:l()("nux-launch-menu__item",{"is-current":u,"is-completed":n}),onClick:d,disabled:c,isLink:!0},(0,r.createElement)(o.Z,{icon:n?a.Z:s,size:16}),(0,r.createElement)("span",null,t))}},9095:function(e,t,n){"use strict";var r=n(6470),i=n(3258),o=n(3027),a=n(849),u=n(6357),l=n(3357),s=n(7997),c=n(5707),d=n(3163),f=n(5869),p=n(1742),m=n(8565),g=n(2779),h=n.n(g),v=n(3804),y=n.n(v),b=n(8398),_=n(2526),S=n(2326),E=n(8318),__=(n(7280),d.__);t.Z=function(e){var t=e.onClose,n=e.isLaunchImmediately,d=y().useContext(u.Z).siteId,g=(0,c.useSelect)((function(e){return e(E.sC).getState()})),v=g.step,A=g.isSidebarFullscreen,w=y().useState(!1),x=(0,i.Z)(w,2),P=x[0],C=x[1],N=y().useState(!1),I=(0,i.Z)(N,2),O=I[0],k=I[1],Z=(0,c.useDispatch)(E.j4).launchSite,M=(0,c.useDispatch)("core/editor").savePost,L=(0,a.bU)(),F=(0,c.useDispatch)(E.sC).setPlanProductId,T=(0,c.useSelect)((function(e){return e(E.Fs).getDefaultFreePlan(L)})),R=y().useCallback((function(){Z(d),C(!0)}),[Z,C,d]);return y().useEffect((function(){n&&!P&&C(!0)}),[P,n]),y().useEffect((function(){var e=function(){var e=(0,r.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n&&!O&&null!=T&&T.productIds[0]&&(F(null==T?void 0:T.productIds[0]),k(!0),e(),R())}),[n,O,R,M,T,F]),(0,l.X)(),(0,o.createElement)(s.Modal,{open:!0,className:h()("nux-launch-modal","step-".concat(v),A?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},P?(0,o.createElement)("div",{className:"nux-launch-modal-body__launching"},__("Hooray! Your site will be ready shortly.","full-site-editing")):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"nux-launch-modal-body"},(0,o.createElement)("div",{className:"nux-launch-modal-header"},(0,o.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,o.createElement)(f.Z,{icon:p.Z,size:36})),(0,o.createElement)(_.Z,null)),(0,o.createElement)(b.Z,{onSubmit:R})),(0,o.createElement)("div",{className:"nux-launch-modal-aside"},(0,o.createElement)(S.Z,null)),(0,o.createElement)(s.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":__("Close dialog","full-site-editing"),disabled:!t},(0,o.createElement)("span",null,(0,o.createElement)(f.Z,{icon:m.Z,size:24})))))}},2526:function(e,t,n){"use strict";var r=n(3027),i=n(5707),o=n(3163),a=n(8675),u=(n(3804),n(8318));n(3232);t.Z=function(){var __=(0,a.useI18n)().__,e=(0,i.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),t=e.currentStep,n=e.LaunchSequence,l=n.indexOf(t)+1,s=n.length,c=(0,o.sprintf)(__("%1$d of %2$d","full-site-editing"),l,s);return(0,r.createElement)("div",{className:"nux-launch-progress"},c)}},2326:function(e,t,n){"use strict";var r=n(3027),i=n(5915),o=n(9211),a=n(5707),u=n(3163),l=(n(3804),n(6915)),s=n(8318),__=(n(1128),u.__);t.Z=function(){var e=(0,a.useDispatch)(s.sC),t=e.setStep,n=e.unsetSidebarFullscreen,u=(0,a.useSelect)((function(e){return e(s.sC).getLaunchSequence()}));return(0,r.createElement)("div",{className:"nux-launch-sidebar"},(0,r.createElement)("div",{className:"nux-launch-sidebar__header"},(0,r.createElement)(i.b,null,__("You're almost there!","full-site-editing")),(0,r.createElement)(i.D,null,__("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,r.createElement)("div",{className:"nux-launch-sidebar__body"},(0,r.createElement)(l.Z,{onMenuItemClick:function(){n()}})),(0,r.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,r.createElement)(o.ZP,{sticky:!0},(0,r.createElement)(o.aW,{onClick:function(){t(u[0]),n()}},__("Get Started","full-site-editing")))))}},381:function(e,t,n){"use strict";var r=n(3027);n(3804),n(8306);t.Z=function(e){var t=e.children;return(0,r.createElement)(r.Fragment,null,t)}},9270:function(e,t,n){"use strict";var r=n(3027),i=n(6115),o=n(2999),a=n(3446),u=n(849),l=n(780),s=n(5144),c=n(6956),d=n(5915),f=n(9211),p=n(5707),m=n(8675),g=(n(3804),n(1157)),h=n(381),v=n(8318);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,y=(0,m.useI18n)(),__=y.__,b=y.hasTranslation,_=(0,u.bU)(),S=(0,l.my)(),E=S.onDomainSelect,A=S.onExistingSubdomainSelect,w=S.currentDomain,x=(0,s.j)().siteSubdomain,P=(0,c.f)(),C=P.domainSearch,N=P.setDomainSearch,I=(0,p.useDispatch)(v.sC).confirmDomainSelection,O=function(){I(),null==n||n()},k=__("Free for the first year with any paid plan.","full-site-editing"),Z=__("Free for the first year with any annual plan.","full-site-editing"),M="en"===_||null!=b&&b("Free for the first year with any annual plan.")?Z:k;return(0,r.createElement)(h.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(d.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(d.D,null,M)),(0,r.createElement)(f.ZP,{sticky:!1},(0,r.createElement)(f.aW,{onClick:O,disabled:!C}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(o.ZP,{analyticsFlowId:g.OS,initialDomainSearch:C,onSetDomainSearch:N,onDomainSearchBlur:function(e){(0,i.jN)("calypso_newsite_domain_search_blur",{flow:g.OS,query:e,where:"editor_domain_modal"})},currentDomain:w||(0,a.nf)(null==x?void 0:x.domain),existingSubdomain:(0,a.nf)(null==x?void 0:x.domain),onDomainSelect:E,onExistingSubdomainSelect:A,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:_})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(f.ZP,{sticky:!0},(0,r.createElement)(f.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(f.aW,{onClick:O,disabled:!C}))))}},4502:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(7384),a=n(1806),u=n(7450),l=n(849),s=n(7498),c=n(4557),d=n(5144),f=n(8463),p=n(6956),m=n(5915),g=n(9211),h=n(3509),v=n(7997),y=n(5707),b=n(3163),_=n(5869),S=n(9806),E=n(8675),A=n(2779),w=n.n(A),x=(n(3804),n(381)),P=n(8318),C=(n(4734),(0,i.createElement)(_.Z,{icon:S.Z,size:17}));t.Z=function(e){var t=e.onNextStep,n=e.onPrevStep,_=(0,y.useSelect)((function(e){var t=e(P.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),S=_.domain,A=_.LaunchStep,N=_.isStepCompleted,I=_.isFlowCompleted,O=_.planProductId,k=(0,E.useI18n)(),__=k.__,Z=k.hasTranslation,M=(0,l.bU)(),L=(0,y.useSelect)((function(e){return[e(P.Fs).getPlanByProductId(O,M),e(P.Fs).getPlanProductById(O)]})),F=(0,r.Z)(L,2),T=F[0],R=F[1],D=(0,c.Z)().title,$=(0,d.j)().siteSubdomain,j=(0,f.V)(),B=(0,p.f)().domainSearch,U=(0,y.useDispatch)(P.sC).setStep,G=(0,s.Iu)(),H=(0,i.createElement)("div",{className:"nux-launch__summary-item"},(0,i.createElement)("p",null,__("Site","full-site-editing"),": ",D)),V=(0,i.createElement)("div",{className:"nux-launch__summary-item"},null!=S&&S.domain_name?(0,i.createElement)("p",null,__("Custom domain","full-site-editing"),": ",S.domain_name,"MONTHLY"===(null==R?void 0:R.billingPeriod)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("br",null),(0,i.createElement)("span",{className:"nux-launch__summary-item__domain-price"},__("Domain Registration","full-site-editing"),":"," ",(0,b.sprintf)(__("%s/year","full-site-editing"),S.cost)))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",null,__("Free site address","full-site-editing"),": ",null==$?void 0:$.domain),(0,i.createElement)(v.Tip,null,B?(0,i.createInterpolateElement)(__("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:(0,i.createElement)("span",{className:w()("nux-launch__summary-item__domain-name",{"is-loading":!j})},(null==j?void 0:j.domain_name)||"loading-example.com"),Link:(0,i.createElement)(v.Button,{isLink:!0,onClick:function(){return U(A.Domain)}})}):__("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),z=__("billed annually","full-site-editing"),W=__("per month, billed as %s annually","full-site-editing"),Y="en"===M||null!=Z&&Z("per month, billed as %s annually")?(0,b.sprintf)(W,null==R?void 0:R.annualPrice):z,q=__("per month, billed monthly","full-site-editing"),K=(0,i.createElement)("div",{className:"nux-launch__summary-item"},T&&R&&!T.isFree?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",T.title),__("Plan subscription","full-site-editing"),": ",R.price," ","ANNUALLY"===R.billingPeriod?Y:q):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,i.createElement)("p",null,__("Plan subscription: Free forever","full-site-editing")),(0,i.createElement)(v.Tip,null,(0,i.createInterpolateElement)((0,b.sprintf)(__("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer %1$d-day full-refunds, guaranteed.","full-site-editing"),14),{Link:(0,i.createElement)(v.Button,{isLink:!0,onClick:function(){return U(A.Plan)}})}))));return(0,i.createElement)(x.Z,null,(0,i.createElement)("div",{className:"nux-launch-step__header"},(0,i.createElement)("div",null,(0,i.createElement)(m.b,null,__("Launch your site","full-site-editing")),(0,i.createElement)(m.D,null,__("Your site will be made public and ready to share with others.","full-site-editing")))),(0,i.createElement)("div",{className:"nux-launch-step__body"},(0,i.createElement)(h.a,{theme:o.Z},(0,i.createElement)(a._U,null,N(A.Plan)&&(0,i.createElement)(a.Bb,null,(0,i.createElement)(a.nb,{className:"nux-launch__feature-list"},(0,i.createElement)("h3",{className:"nux-launch__feature-list-title"},__("Included in your plan","full-site-editing")),(0,i.createElement)("ul",{className:"nux-launch__feature-item-group"},null==T?void 0:T.features.filter((function(e){return"ANNUALLY"===(null==R?void 0:R.billingPeriod)||!e.requiresAnnuallyBilledPlan})).map((function(e,t){return(0,i.createElement)("li",{key:t,className:"nux-launch__feature-item"},C," ",e.name)}))),(0,i.createElement)("p",null,__("Questions?","full-site-editing")," ",(0,i.createElement)(v.Button,{isLink:!0,href:G("https://wordpress.com/help/contact",M),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing"))))),(0,i.createElement)(a.r8,null,(0,i.createElement)(a.V9,{isStepActive:!1,titleContent:__("Your site name","full-site-editing"),isStepComplete:N(A.Name),goToThisStep:function(){return U(A.Name)},completeStepContent:H,stepId:"name",formStatus:u.PX.READY}),(0,i.createElement)(a.V9,{isStepActive:!1,titleContent:__("Your domain","full-site-editing"),isStepComplete:N(A.Domain),goToThisStep:function(){return U(A.Domain)},completeStepContent:V,stepId:"domain",formStatus:u.PX.READY}),(0,i.createElement)(a.V9,{isStepActive:!1,titleContent:__("Your plan","full-site-editing"),isStepComplete:N(A.Plan),goToThisStep:function(){return U(A.Plan)},completeStepContent:K,stepId:"plan",formStatus:u.PX.READY}),(0,i.createElement)(a.ds,null,(0,i.createElement)(v.Button,{isPrimary:!0,disabled:!I,onClick:t,className:"nux-launch__submit-button"},__("Launch your site","full-site-editing"))))))),(0,i.createElement)("div",{className:"nux-launch-step__footer"},(0,i.createElement)(g.ZP,{sticky:!0},(0,i.createElement)(g.xE,{onClick:function(){null==n||n()}}))))}},958:function(e,t,n){"use strict";var r=n(3027),i=n(4557),o=n(5915),a=n(9211),u=n(7997),l=n(3163),s=(n(3804),n(381)),__=(n(8594),l.__);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,l=(0,i.Z)(),c=l.title,d=l.updateTitle,f=function(){null==n||n()};return(0,r.createElement)(s.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(o.b,null,__("Name your site","full-site-editing")),(0,r.createElement)(o.D,null,__("Pick a name for your site.","full-site-editing"))),(0,r.createElement)(a.ZP,{sticky:!1},(0,r.createElement)(a.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)("form",{onSubmit:f},(0,r.createElement)(u.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:d,value:c||"",spellCheck:!1,autoComplete:"off",placeholder:__("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,r.createElement)("div",{className:"nux-launch-step__input-hint"},(0,r.createElement)(u.Tip,{size:18}),(0,r.createElement)("span",null,__("Don't worry, you can change it later.","full-site-editing"))))),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(a.ZP,{sticky:!0},(0,r.createElement)(a.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(a.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))))}},4524:function(e,t,n){"use strict";var r=n(3027),i=n(3073),o=n(5915),a=n(9211),u=n(5315),l=n(5707),s=n(3163),c=(n(3804),n(381)),d=n(8318),__=(n(7605),s.__);t.Z=function(e){var t,n=e.onPrevStep,f=e.onNextStep,p=(0,l.useSelect)((function(e){var t=e(d.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),m=p.domain,g=p.LaunchStep,h=p.selectedPlanProductId,v=(0,l.useDispatch)(d.sC),y=v.setPlanProductId,b=v.setStep,_=(0,i.W)().selectedFeatures,S=m&&!m.is_free;return(0,r.createElement)(c.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(o.b,null,__("Select a plan","full-site-editing")),(0,r.createElement)(o.D,null,(0,s.sprintf)(__("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14)))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(u.Z,{currentPlanProductId:h,currentDomain:m,onPlanSelect:function(e){y(e),null==f||f()},onPickDomainClick:function(){b(g.Domain)},disabledPlans:S?{free:__("Unavailable with domain","full-site-editing")}:void 0,isAccordion:!0,selectedFeatures:_,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(a.ZP,{sticky:!0},(0,r.createElement)(a.xE,{onClick:function(){null==n||n()}}))))}},8398:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=n(5707),a=n(3804),u=n.n(a),l=n(9270),s=n(4502),c=n(958),d=n(4524),f=n(8318);n(8508);t.Z=function(e){var t,n=e.onSubmit,a=(0,o.useSelect)((function(e){return e(f.sC).getState()})).step,p=(0,o.useSelect)((function(e){return e(f.sC).getLaunchStep()})),m=(0,o.useSelect)((function(e){return e(f.sC).getLaunchSequence()})),g=(0,o.useSelect)((function(e){return e(f.sC).getFirstIncompleteStep()})),h=(0,o.useDispatch)(f.sC),v=h.setStep,y=h.setSidebarFullscreen,b=h.unsetSidebarFullscreen,_=(t={},(0,r.Z)(t,p.Name,c.Z),(0,r.Z)(t,p.Domain,l.Z),(0,r.Z)(t,p.Plan,d.Z),(0,r.Z)(t,p.Final,s.Z),t),S=m.indexOf(a),E=_[a];return u().useEffect((function(){g&&g!==p.Name&&v(g)}),[]),(0,i.createElement)(E,{onPrevStep:function(){var e=S-1;e<0&&(e=0,y()),v(m[e])},onNextStep:function(){var e=S+1;e>m.length-1&&(null==n||n()),b(),v(m[e])}})}},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return i},Fs:function(){return o}});n(8681);var r="automattic/site",i="automattic/launch",o="automattic/onboard/plans"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return l},gQ:function(){return s},Rd:function(){return c}});var r=n(9394),i=n(1119),o=n(5799),a=n(791),u=n(1157),l=function(){var e,t,n;return null!==(e=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.currentCalypsoUrl)&&void 0!==e?e:window.location.href},s=function(e){var t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch(o){}var i=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat(t).concat(i))},c=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2?arguments[2]:void 0,f="a8c.wpcom-block-editor.openCheckoutModal",p=(null===(e=window)||void 0===e||null===(t=e.wpcomEditorSiteLaunch)||void 0===t?void 0:t.launchFlow)===u.Js,m=l().split("?")[0];if((0,o.hasAction)(f)&&p&&!c)(0,o.doAction)(f,{checkoutOnSuccessCallback:d,isFocusedLaunch:!0,redirectTo:(0,a.addQueryArgs)(m,(0,i.Z)({},u.nU,!0))});else{var g=(0,a.addQueryArgs)("/checkout/".concat(n),(0,r.Z)({},!c&&{redirect_to:"/home/".concat(n)}));s(g)}}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return i.Sn},Lo:function(){return i.Lo},k9:function(){return i.k9}});n(1694),n(6209),n(9377);var r=n(9792),i=n(3722)},9377:function(e,t,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r,i=n(9394),o=n(2699),a=n(4898),u=(n(3421),n(1205)),l=(n(9377),n(6209),n(9358)),s=(n(1694),["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"]);Promise.resolve();function c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,a.ve)("//stats.wp.com/w.js?63");var d=new o.EventEmitter;function f(e,t){if(t=t||{},(0,l.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,u.includes)(s,e)){if(r){var n=r(t);t=(0,i.Z)((0,i.Z)({},t),n)}t=(0,u.omitBy)(t,(function(e){return void 0===e})),(0,l.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,l.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return o},Lo:function(){return a},k9:function(){return u}});var r=n(8767),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,u=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:u})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat((0,r.Z)().replace(/-/g,""),"-").concat(e)}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},4790:function(e,t,n){"use strict";var r,i=n(7560),o=n(1766),a=n(4530),u=n(4059),l=n(3027),s=n(2248),c=(n(3804),n(6654)),d=["className","buttonType","isBusy","children","fullWidth"],f=(0,s.Z)("button")(r||(r=(0,u.Z)(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: ",";\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"])),(function(e){return e.fullWidth?"100%":"auto"}),(function(e){return"paypal"===e.buttonType?"50px":"2px"}),(function(e){return"text-button"===e.buttonType?"0":"10px 15px"}),(function(e){return!e.buttonType||e.disabled?"1px solid "+e.theme.colors.borderColor:"0"}),g,m,(function(e){return e.theme.weights.normal}),v,p,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),m,(function(e){return e.disabled?"not-allowed":"pointer"}),p,v,m,(function(e){var t=e.buttonType;return"grayscale( ".concat("primary"===t||"paypal"===t?"0":"100"," ) invert( 0 );")}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),g,h,h,g);function p(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function m(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledButtons;switch(n){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function g(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function h(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtonsAccent;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function v(e){return"text-button"===e.buttonType?"underline":"none"}t.Z=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,u=e.children,s=e.fullWidth,p=(0,a.Z)(e,d),m=(0,c.Z)(["checkout-button"].concat((0,o.Z)(n?["is-status-"+n]:[]),(0,o.Z)(r?["is-busy"]:[]),(0,o.Z)(t?[t]:[])));return(0,l.createElement)(f,(0,i.Z)({fullWidth:s,buttonType:n,className:m},p),u)}},3246:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,i=n(4659),o=n(4730),a=n(3989),u=n(5663),l=n(9049),s=n(1119),c=n(4059),d=n(3027),f=n(2248),p=n(8049),m=n.n(p),g=n(3804),h=n.n(g),v=m()("composite-checkout:checkout-error-boundary"),y=f.Z.div(r||(r=(0,c.Z)(["\n\tmargin: 2em;\n\ttext-align: center;\n"]))),b=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r;return(0,i.Z)(this,n),r=t.call(this,e),(0,s.Z)((0,a.Z)(r),"state",{hasError:!1}),r}return(0,o.Z)(n,[{key:"componentDidCatch",value:function(e,t){if(this.props.onError){var n="".concat(e.message,"; Stack: ").concat(e.stack,"; Component Stack: ").concat(t.componentStack);v("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,d.createElement)(_,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),n}(h().Component);function _(e){var t=e.errorMessage;return(0,d.createElement)(y,null,t)}},7984:function(e,t,n){"use strict";var r=n(7560),i=n(4530),o=n(3027),a=(n(3804),n(4790)),u=["value","onClick","ariaLabel"];t.Z=function(e){var t=e.value,n=e.onClick,l=e.ariaLabel,s=(0,i.Z)(e,u);return(0,o.createElement)(a.Z,(0,r.Z)({onClick:n,buttonType:"primary","aria-label":l},s),t)}},1806:function(e,t,n){"use strict";n.d(t,{_U:function(){return L},Bb:function(){return T},nb:function(){return R},r8:function(){return D},ds:function(){return $},V9:function(){return G}});var r,i,o,a,u,l,s,c,d,f,p,m,g,h,v,y,b,_=n(4059),S=n(3027),E=n(2248),A=n(8675),w=n(8049),x=n.n(w),P=n(3980),C=n.n(P),N=(n(3804),n(6654)),I=n(7450),O=n(4790),k=n(3246),Z=n(7984),M=n(5197),L=(x()("composite-checkout:checkout"),E.Z.div(r||(r=(0,_.Z)(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"])),(function(e){return e.theme.colors.outline})),E.Z.div(i||(i=(0,_.Z)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp}))),F=E.Z.div(o||(o=(0,_.Z)(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),T=function(e){var t=e.children,n=e.className;return(0,S.createElement)(F,{className:(0,N.Z)([n,"checkout__summary-area"])},t)},R=E.Z.div(a||(a=(0,_.Z)(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"])),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}));var D=E.Z.div(u||(u=(0,_.Z)(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"])),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),$=E.Z.div(l||(l=(0,_.Z)(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t\tmargin: 0 auto;\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"])),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));E.Z.div(s||(s=(0,_.Z)(["\n\tpadding-right: 42px;\n\n\t@media ( "," ) {\n\t\tpadding-right: 0;\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}));var j=E.Z.div(c||(c=(0,_.Z)(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"])),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp})),B=E.Z.div(d||(d=(0,_.Z)(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"])),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),U=E.Z.div(f||(f=(0,_.Z)(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"])),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function G(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,u=e.validatingButtonAriaLabel,l=e.isStepActive,s=e.isStepComplete,c=e.className,d=e.stepNumber,f=e.stepId,p=e.titleContent,m=e.goToThisStep,g=e.goToNextStep,h=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,b=e.onError,__=(0,A.useI18n)().__,_="".concat(f,l?"--visible":"--invisible"),E="".concat(f,l?"--invisible":"--visible");return(0,S.createElement)(k.Z,{errorMessage:t||__("There was an error with this step."),onError:b},(0,S.createElement)(j,{className:c},(0,S.createElement)(W,{id:f,stepNumber:d,title:p,isActive:l,isComplete:s,onEdit:v===I.PX.READY&&s&&m&&!l?m:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,S.createElement)(B,{"data-testid":_,isVisible:l,className:"checkout-steps__step-content"},h,g&&l&&(0,S.createElement)(Z.Z,{onClick:g,value:v===I.PX.VALIDATING?o||__("Please wait…"):i||__("Continue"),ariaLabel:v===I.PX.VALIDATING?u||__("Please wait…"):a||__("Continue to next step"),buttonType:"primary",disabled:v!==I.PX.READY,isBusy:v===I.PX.VALIDATING})),s&&y?(0,S.createElement)(U,{"data-testid":E,isVisible:!l,className:"checkout-steps__step-complete-content"},y):null))}G.propTypes={errorMessage:C().string,onError:C().func,editButtonAriaLabel:C().string,editButtonText:C().string,nextStepButtonText:C().string,nextStepButtonAriaLabel:C().string,isStepActive:C().bool.isRequired,isStepComplete:C().bool.isRequired,className:C().string,stepNumber:C().number,stepId:C().string.isRequired,titleContent:C().node.isRequired,goToThisStep:C().func,goToNextStep:C().func,activeStepContent:C().node,formStatus:C().string,completeStepContent:C().node,validatingButtonText:C().string,validatingButtonAriaLabel:C().string};var H=E.Z.span(p||(p=(0,_.Z)(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"])),(function(e){return e.isActive?e.theme.colors.textColorDark:e.theme.colors.textColor}),(function(e){return e.isActive?e.theme.weights.bold:e.theme.weights.normal}),(function(e){return e.fullWidth?"0":"8px"}),(function(e){return e.fullWidth?"0":"8px"})),V=E.Z.h2(m||(m=(0,_.Z)(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"])),(function(e){return e.isComplete||e.isActive?"8px":"0"})),z=(0,E.Z)(O.Z)(g||(g=(0,_.Z)(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"])));function W(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,u=e.onEdit,l=e.editButtonText,s=e.editButtonAriaLabel,__=(0,A.useI18n)().__,c=!!u;return(0,S.createElement)(V,{isComplete:a,isActive:o,className:(0,N.Z)([n,"checkout-step__header"])},(0,S.createElement)(X,{isComplete:a,isActive:o,id:t},r||null),(0,S.createElement)(H,{fullWidth:!c,isActive:o},i),c&&(0,S.createElement)(z,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:u,"aria-label":s||__("Edit this step")},l||__("Edit")))}var Y=E.Z.div(h||(h=(0,_.Z)(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]))),q=E.Z.div(v||(v=(0,_.Z)(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"])),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),K=E.Z.div(y||(y=(0,_.Z)(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"])),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(n)return r.colors.highlight;if(t)return r.colors.success;return r.colors.upcomingStepBackground}),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(t||n)return r.colors.surface;return r.colors.textColor}),(function(e){return e.isComplete?"0":"1"})),J=(0,E.Z)(K)(b||(b=(0,_.Z)(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"])),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function X(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return(0,S.createElement)(Y,{className:(0,N.Z)([r,"checkout-step__stepper"])},(0,S.createElement)(q,{isComplete:a},(0,S.createElement)(K,{isComplete:a,isActive:n},i),(0,S.createElement)(J,null,(0,S.createElement)(M.nQ,{id:o}))))}W.propTypes={id:C().string,className:C().string,stepNumber:C().number,title:C().node.isRequired,isActive:C().bool,isComplete:C().bool,editButtonText:C().string,editButtonAriaLabel:C().string,onEdit:C().func},X.propTypes={id:C().string,className:C().string,isComplete:C().bool,isActive:C().bool}},5197:function(e,t,n){"use strict";n.d(t,{nQ:function(){return c}});var r,i=n(4059),o=n(3027),a=n(2248),u=n(3980),l=n.n(u),s=(n(3804),a.Z.svg(r||(r=(0,i.Z)(["\n\tfill: #fff;\n"]))));function c(e){var t=e.className,n=e.id;return(0,o.createElement)(s,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},(0,o.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,o.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),(0,o.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},(0,o.createElement)("rect",{width:"20",height:"20"})))}c.propTypes={className:l().string,id:l().string}},6654:function(e,t,n){"use strict";function r(e){return e.filter((function(e){return e})).join(" ")}n.d(t,{Z:function(){return r}})},5777:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r={wordpressBlue5:"#BEDAE6",wordpressBlue40:"#187AA2",wordpressBlue50:"#006088",wordpressBlue60:"#004E6E",wordpressBlue80:"#002C40",blue5:"#BBE0FA",blue30:"#399CE3",blue40:"#1689DB",blue50:"#0675C4",blue60:"#055D9C",blue80:"#02395C",gray0:"#F6F7F7",gray5:"#DCDCDE",gray10:"#C3C4C7",gray20:"#A7AAAD",gray30:"#8E9196",gray50:"#646970",gray80:"#2C3338",pink50:"#C9356E",pink60:"#AB235A",pink80:"#700F3B",green50:"#008A20",red50:"#D63638",red0:"#F7EBEC",white:"#FFF",black:"#000"}},7384:function(e,t,n){"use strict";var r=n(5777),i={colors:{background:r.I.gray0,surface:r.I.white,primary:r.I.pink50,primaryBorder:r.I.pink80,primaryOver:r.I.pink60,highlight:r.I.blue50,highlightBorder:r.I.blue80,highlightOver:r.I.blue60,success:r.I.green50,discount:r.I.green50,disabledPaymentButtons:r.I.gray0,disabledPaymentButtonsAccent:r.I.gray5,disabledButtons:r.I.gray20,borderColor:r.I.gray10,borderColorLight:r.I.gray5,borderColorDark:r.I.gray50,upcomingStepBackground:r.I.gray5,textColor:r.I.gray80,textColorLight:r.I.gray50,textColorDark:r.I.black,error:r.I.red50,warningBackground:r.I.red0,outline:r.I.blue30,applePayButtonColor:r.I.black,applePayButtonRollOverColor:r.I.gray80,noticeBackground:r.I.gray80,defaultNoticeIconBackground:r.I.gray30,textColorOnDarkBackground:r.I.white,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:r.I.gray0,placeHolderTextColor:r.I.gray30},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}};t.Z=i},7450:function(e,t,n){"use strict";var r,i,o;n.d(t,{PX:function(){return r}}),function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL",e.ERROR="ERROR"}(i||(i={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(o||(o={}))},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return i},receiveDomainAvailability:function(){return o},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},i=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},o=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},a=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},u=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},584:function(e,t,n){"use strict";n.d(t,{L:function(){return i},r:function(){return r}});var r,i="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(r||(r={}))},8077:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(3661),o=n(3600),a=n(584),u=n(3717),l=n(2269),s=n(267),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.L,{actions:o,controls:i.ai,reducer:u.Z,resolvers:l,selectors:s})),a.L}},3717:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=n(584),u=n(4211),l={state:a.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},s=(0,o.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Success,data:(0,i.Z)((0,i.Z)({},e.data),{},(0,r.Z)({},(0,u.Le)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.domainName,t.availability)):e}});t.Z=s},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return g},getCategories:function(){return h},__internalGetDomainSuggestions:function(){return v}});var r=n(9394),i=n(1481),o=n(9126),a=n(6468),u=n.n(a),l=n(3661),s=n(3600),c=n(4211),d=regeneratorRuntime.mark(h),f=regeneratorRuntime.mark(v);function p(e){return"https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(e),"/is-available?is_cart_pre_check=true")}function m(e,t){return u().isFQDN(t)&&!e.some((function(e){return e.domain_name.toLowerCase()===t}))}var g=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p(t),e.prev=1,e.next=4,(0,l.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,s.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,s.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function h(){var e,t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,l.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=n.sent,t=e.body,n.abrupt("return",(0,s.receiveCategories)(t));case 5:case"end":return n.stop()}}),d)}function v(e){var t,n,a;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(e.query){u.next=2;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)("Empty query"));case 2:return u.next=4,(0,s.fetchDomainSuggestions)();case 4:return u.prev=4,u.next=7,(0,l._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});case 7:if(t=u.sent,Array.isArray(t)){u.next=10;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)((0,i.Iu)("Invalid response from the server")));case 10:return m(t,e.query)&&(n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""},t.unshift(n)),a=t.map((function(e){return e.unavailable?e:(0,r.Z)((0,r.Z)({},e),e.raw_price&&e.currency_code&&{cost:(0,c._B)(e.raw_price,e.currency_code)})})),u.abrupt("return",(0,s.receiveDomainSuggestionsSuccess)(e,a));case 15:return u.prev=15,u.t0=u.catch(4),u.abrupt("return",(0,s.receiveDomainSuggestionsError)(u.t0.message||(0,i.Iu)("Error while fetching server response")));case 18:case"end":return u.stop()}}),f,null,[[4,15]])}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return u},getDomainSuggestions:function(){return l},getDomainState:function(){return s},getDomainErrorMessage:function(){return c},isLoadingDomainSuggestions:function(){return d},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return p},getDomainAvailabilities:function(){return m}});var r=n(1766),i=n(5707),o=n(584),a=n(4211),u=function(e){return[].concat((0,r.Z)(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),(0,r.Z)(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)(o.L).__internalGetDomainSuggestions(r)},s=function(e){return e.domainSuggestions.state},c=function(e){return e.domainSuggestions.errorMessage},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[r])},f=function(e,t){return e.domainSuggestions.data[(0,a.Le)(t)]},p=function(e,t){return e.availability[t]},m=function(e){return e.availability}},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return a},_B:function(){return u},o0:function(){return l}});var r=n(9394),i=n(1621),o=n(5695),a=n.n(o)();function u(e,t){return(0,i.ZP)(e,t,{stripZeros:!0})}function l(e,t){return(0,r.Z)((0,r.Z)({include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front"},t),{},{query:e.trim().toLocaleLowerCase()})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return l},setDomain:function(){return s},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return m},unsetPlanProductId:function(){return g},updatePlan:function(){return h},openSidebar:function(){return v},closeSidebar:function(){return y},openFocusedLaunch:function(){return b},closeFocusedLaunch:function(){return _},enableAnchorFm:function(){return S},showSiteTitleStep:function(){return E},setModalDismissible:function(){return A},unsetModalDismissible:function(){return w},showModalTitle:function(){return x},hideModalTitle:function(){return P},enablePersistentSuccessView:function(){return C},disablePersistentSuccessView:function(){return N}});var r=n(5707),i=n(9149),o=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},a=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},u=function(e){return{type:"SET_STEP",step:e}},l=function(e){return{type:"SET_SITE_TITLE",title:e}},s=function(e){return{type:"SET_DOMAIN",domain:e}},c=function(){return{type:"UNSET_DOMAIN"}},d=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},f=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},p=function(e){return{type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}},m=regeneratorRuntime.mark((function e(t){var n,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,r.select)(i.Fs).isPlanProductFree(t)){e.next=6;break}return o=(0,r.select)(i.Fs).getPlanProductById(t),a=null!==(n=null==o?void 0:o.billingPeriod)&&void 0!==n?n:"ANNUALLY",e.next=6,p(a);case 6:return e.abrupt("return",{type:"SET_PLAN_PRODUCT_ID",planProductId:t});case 7:case"end":return e.stop()}}),e)})),g=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function h(e){return m(e)}var v=function(){return{type:"OPEN_SIDEBAR"}},y=function(){return{type:"CLOSE_SIDEBAR"}},b=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},_=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},S=function(){return{type:"ENABLE_ANCHOR_FM"}},E=function(){return{type:"SHOW_SITE_TITLE_STEP"}},A=function(){return{type:"SET_MODAL_DISMISSIBLE"}},w=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},x=function(){return{type:"SHOW_MODAL_TITLE"}},P=function(){return{type:"HIDE_MODAL_TITLE"}},C=function(){return{type:"ENABLE_SUCCESS_VIEW"}},N=function(){return{type:"DISABLE_SUCCESS_VIEW"}}},9149:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Fs:function(){return i}});var r="automattic/launch",i="automattic/onboard/plans"},3610:function(e,t,n){"use strict";n.d(t,{y:function(){return r},M:function(){return i}});var r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},i=[r.Name,r.Domain,r.Plan,r.Final]},1635:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(5707),i=n(9866),o=n(6108),a=n(9149),u=n(594),l=n(4648),s=n(7092);(0,r.use)(r.plugins.persistence,u.Z);var c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{actions:o,controls:i.controls,reducer:l.Z,selectors:s,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(5707),i=n(3610),o=(0,r.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.y.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planBillingPeriod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ANNUALLY",t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isAnchorFm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_ANCHOR_FM"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e}});t.Z=o},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return l},hasPaidDomain:function(){return s},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return v},getFirstIncompleteStep:function(){return y},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var r=n(5707),i=n(9149),o=n(3610),a=function(){return o.M},u=function(){return o.y},l=function(e){return e},s=function(e){return!!e.domain&&!e.domain.is_free},c=function(e){return e.domain},d=function(e){return e.planProductId},f=function(e){return e.planBillingPeriod},p=function(e){return void 0!==e.planProductId&&!(0,r.select)(i.Fs).isPlanProductFree(e.planProductId)},m=function(e){return!!c(e)||e.confirmedDomainSelection},g=function(e,t){if(t===o.y.Plan)return!!d(e);if(t===o.y.Name){var n=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===o.y.Domain&&(0,r.select)(i.Ls).hasSelectedDomainOrSubdomain()},h=function(e){return o.M.slice(0,o.M.length-1).every((function(t){return g(e,t)}))},v=function(e){return o.M.some((function(t){return g(e,t)}))},y=function(e){return o.M.find((function(t){return!g(e,t)}))},b=function(e){return null==e?void 0:e.siteTitle},_=function(e){return e.step},S=function(e){return e.domainSearch}},492:function(e,t,n){"use strict";function r(e){var t=e,n=e+"_TS",r={},i={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[e]}},o=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:i;return{storageKey:t,storage:{getItem:function(e){var r=o.getItem(n);return r&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(r)&&!new URLSearchParams(window.location.search).has("fresh")?o.getItem(e):(o.removeItem(t),o.removeItem(n),null)},setItem:function(e,t){o.setItem(n,JSON.stringify(Date.now())),o.setItem(e,t)}}}}n.d(t,{Z:function(){return r}})},9068:function(e,t,n){"use strict";n.r(t),n.d(t,{setFeatures:function(){return r},setFeaturesByType:function(){return i},setPlans:function(){return o},setPlanProducts:function(){return a},resetPlan:function(){return u}});var r=function(e,t){return{type:"SET_FEATURES",features:e,locale:t}},i=function(e,t){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}},o=function(e,t){return{type:"SET_PLANS",plans:e,locale:t}},a=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},u=function(){return{type:"RESET_PLAN"}}},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return i},TO:function(){return o},YS:function(){return a},Gz:function(){return u},hx:function(){return l},iL:function(){return s},xT:function(){return c},AX:function(){return d},bS:function(){return f},UB:function(){return p},BV:function(){return m},nN:function(){return g}});var r="automattic/onboard/plans",i=1,o="free",a="personal",u="premium",l="business",s="ecommerce",c=[o,a,u,l,s],d=u,f=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],p=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],m=["free_plan"].concat(f,p),g=["custom-domain","support-live","priority-support"]},9734:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(3661),o=n(9068),a=n(4703),u=n(9438),l=n(5261),s=n(7738),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{resolvers:l,actions:o,controls:i.ai,reducer:u.ZP,selectors:s})),a.Ls}},9438:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=(0,o.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.features));default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.featuresByType));default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.plans));default:return e}}});t.ZP=a},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return g}});var r=n(1621),i=n(9126),o=n(3661),a=n(9068),u=n(4703),l=regeneratorRuntime.mark(g);function s(e){return(0,r.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function c(e){return(0,r.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function d(e){return e.reduce((function(e,t){return e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:u.nN.indexOf(t.id)>-1},e}),{})}function f(e,t){var n=Object.keys(t).find((function(n){return t[n].name===e}));return!!n&&t[n].requiresAnnuallyBilledPlan}function p(e,t){var n=e.highlighted_features.map((function(e){return{name:e,requiresAnnuallyBilledPlan:f(e,t)}}));return n.sort((function(e,t){return Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan)})),n}function m(e,t){var n=u.BV.reduce((function(n,i){var o=e.find((function(e){return e.product_slug===i}));if(!o)return n;var a,u=t.find((function(e){return e.productIds.indexOf(o.product_id)>-1}));return n.push({productId:o.product_id,billingPeriod:31===o.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:u.periodAgnosticSlug,storeSlug:o.product_slug,rawPrice:o.raw_price,pathSlug:o.path_slug,price:31===(null==o?void 0:o.bill_period)||0===o.raw_price?c(o):(a=o,(0,r.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?s(o):c(o)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===u.bS[t]})),r=e.find((function(e){return e.storeSlug===u.UB[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,a=Math.round(100*(1-o/i));n.annualDiscount=a,r.annualDiscount=a}},n=0;n<u.bS.length;n++)t(n)}(n),n}function g(){var e,t,n,r,s,c,f,g=arguments;return regeneratorRuntime.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return e=g.length>0&&void 0!==g[0]?g[0]:"en",l.next=3,(0,o._9)({path:"/plans",query:(0,i.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=l.sent,l.next=6,(0,o.An)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=l.sent,r=n.body,s=d(r.features),c=r.plans.map((function(e){var t,n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:p(e,s),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:n===u.TO,isPopular:n===u.Gz,periodAgnosticSlug:n,productIds:e.products.map((function(e){return e.plan_id}))}})),f=m(t,c),l.next=13,(0,a.setPlans)(c,e);case 13:return l.next=15,(0,a.setPlanProducts)(f);case 15:return l.next=17,(0,a.setFeatures)(s,e);case 17:return l.next=19,(0,a.setFeaturesByType)(r.features_by_type,e);case 19:case"end":return l.stop()}}),l)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return l},getPlanByProductId:function(){return s},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return g},getPrices:function(){return h},getPlanByPath:function(){return v},getPlanProduct:function(){return y},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var r=n(5707),i=n(3613),o=n.n(i),a=n(4703),u=function(e,t){var n;return null!==(n=e.features[t])&&void 0!==n?n:{}},l=function(e,t){var n;return null!==(n=e.featuresByType[t])&&void 0!==n?n:[]},s=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},c=function(e,t){if(t)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},f=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.AX}))},p=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.TO}))},m=function(e,t){var n;return null!==(n=e.plans[t])&&void 0!==n?n:[]},g=function(e){return e.planProducts},h=function(e,t){return o()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var i=(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(i)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===i.periodAgnosticSlug}))}},y=function(e,t,n){if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){var r=e.periodAgnosticSlug===t,i=t===a.TO||e.billingPeriod===n;return r&&i}))},b=function(e,t){return t===a.iL},_=function(e,t){return t===a.TO},S=function(e,t){return t===a.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return l}});var r=n(9394),i=n(4530),o=n(3661),a=n(9639),u=["authToken"];function l(e){var t=regeneratorRuntime.mark(m),n=regeneratorRuntime.mark(b),l=regeneratorRuntime.mark(_),s=regeneratorRuntime.mark(S),c=regeneratorRuntime.mark(E),d=function(){return{type:"FETCH_NEW_SITE"}},f=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},p=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function m(n){var a,l,s,c,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,a=n.authToken,l=(0,i.Z)(n,u),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},c=(0,r.Z)((0,r.Z)((0,r.Z)({},s),l),{},{validate:!1}),t.next=8,(0,o._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:c,token:a});case 8:return d=t.sent,t.next=11,f(d);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,p(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var g=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},h=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},v=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},y=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function b(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h(e);case 2:return t.prev=2,t.next=5,(0,o._9)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,v(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,y(e,a.Hc.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function _(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),l)}function S(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),s)}function E(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,o._9)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,g(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),c,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:E,receiveSiteTitle:g,fetchNewSite:d,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:f,receiveNewSiteFailed:p,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:m,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:b,launchSiteStart:h,launchSiteSuccess:v,launchSiteFailure:y,getCart:_,setCart:S}}},2005:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/site"},2369:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(3661),o=n(8459),a=n(2005),u=n(2701),l=n(7862),s=n(4309),c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(a.L,{actions:(0,o.d)(e),controls:i.ai,reducer:u.ZP,resolvers:l,selectors:s})),a.L}},2701:function(e,t,n){"use strict";var r=n(4530),i=n(60),o=n(1119),a=n(9394),u=n(5707),l=n(9639),s=(0,u.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),c=(0,u.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:s,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,u=(e[n],(0,r.Z)(e,[n].map(i.Z)));return(0,a.Z)({},u)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,(0,a.Z)((0,a.Z)({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:l.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:l.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:l.uS.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.domains)):e}});t.ZP=c},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return l},getSiteDomains:function(){return s}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(l),u=regeneratorRuntime.mark(s);function l(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,r.dispatch)(o.L).fetchSite();case 2:return n.prev=2,n.next=5,(0,i._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,r.dispatch)(o.L).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,r.dispatch)(o.L).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),a,null,[[2,10]])}function s(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,i._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,r.dispatch)(o.L).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),u,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return l},isFetchingSite:function(){return s},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return g},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return v},getSiteSubdomain:function(){return y}});var r=n(5707),i=n(2005),o=n(9639),a=function(e){return e},u=function(e){return e.newSite.data},l=function(e){return e.newSite.error},s=function(e){return e.newSite.isFetching},c=function(e){return e.isFetchingSiteDetails},d=function(e){return!!e.newSite.data},f=function(e,t){return e.sites[t]},p=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSite(t))||void 0===n?void 0:n.name},m=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.SUCCESS},g=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.IN_PROGRESS},h=function(e,t){return e.sitesDomains[t]},v=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},y=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))}},9639:function(e,t,n){"use strict";var r,i,o;n.d(t,{Hc:function(){return i},uS:function(){return o}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(i||(i={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(o||(o={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,u={domain:{id:"domain",minSupportedPlan:i},store:{id:"store",minSupportedPlan:r.iL},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:i},"image-storage":{id:"image-storage",minSupportedPlan:o},"video-storage":{id:"video-storage",minSupportedPlan:o},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(5707),i=n(9866),o=n(4366),a=n(8638),u=n(335),l=!1;function s(){return l||(l=!0,(0,r.registerStore)(o.L,{controls:i.controls,reducer:a.Z,selectors:u})),o.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.$;return e}},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return i},getRecommendedPlanSlug:function(){return o}});var r=n(4703),i=function(e){return e},o=function(e,t){var n=i(e);if(t.length)return t.reduce((function(e,t){var i=n[t].minSupportedPlan;return r.xT.indexOf(i)>r.xT.indexOf(e)?i:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return a},An:function(){return u},ai:function(){return l}});var r,i=n(6470),o=n(8552),a=function(e){return{type:"WPCOM_REQUEST",request:e}},u=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},l={WPCOM_REQUEST:function(e){var t=e.request;return(0,o.ZP)(t)},FETCH_AND_PARSE:(r=(0,i.Z)(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return r.apply(this,arguments)}),RELOAD_PROXY:function(){(0,o.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,o.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},7003:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(7997),a=n(5707),u=n(5869),l=n(3383),s=n(8675),c=n(2779),d=n.n(c),f=(n(3804),n(3300));n(5918);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,s.useI18n)().__,c=(0,i.useState)(!1),p=(0,r.Z)(c,2),m=p[0],g=p[1],h=function(e){g(!1),t(e)},v=(0,a.useSelect)((function(e){return e(f.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,i.createElement)("div",{className:d()("domain-categories",{"is-open":m})},(0,i.createElement)(o.Button,{className:"domain-categories__dropdown-button",onClick:function(){return g(!m)}},(0,i.createElement)("span",null,null!=n?n:y),(0,i.createElement)(u.Z,{icon:l.Z,size:16})),(0,i.createElement)("ul",{className:"domain-categories__item-group"},(0,i.createElement)("li",{className:d()("domain-categories__item",{"is-selected":!n})},(0,i.createElement)(o.Button,{onClick:function(){return h()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,i.createElement)("li",{key:t,className:d()("domain-categories__item",{"is-selected":t===n})},(0,i.createElement)(o.Button,{onClick:function(){return h(t)}},r))}))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=n(8675),o=(n(3804),function(){var e=(0,i.useI18n)(),__=e.__,t=e.isRTL;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},(0,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))})},1614:function(e,t,n){"use strict";var r=n(3027),i=n(2779),o=n.n(i);n(3804);t.Z=function(e){var t=e.type;return(0,r.createElement)("div",{className:o()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))}},7226:function(e,t,n){"use strict";var r=n(7560),i=n(4530),o=n(3027),a=n(3804),u=n(6461),l=["type","disabled"],s=a.forwardRef((function(e,t){var n=e.type,a=e.disabled,s=(0,i.Z)(e,l);return n===u.ln?(0,o.createElement)("div",s):(0,o.createElement)("button",(0,r.Z)({ref:t,disabled:a},s))}));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return b}});var r=n(7560),i=n(3258),o=n(3027),a=n(6115),u=n(849),l=n(7498),s=n(7997),c=n(1417),d=n(3163),f=n(8675),p=n(2779),m=n.n(p),g=n(3804),h=n(413),v=n(7226),y="radio",b="button",_="individual-item",S=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,p=e.cost,S=e.railcarId,E=e.hstsRequired,A=void 0!==E&&E,w=e.isFree,x=void 0!==w&&w,P=e.isExistingSubdomain,C=void 0!==P&&P,N=e.isRecommended,I=void 0!==N&&N,O=e.onSelect,k=e.onRender,Z=e.selected,M=e.type,L=void 0===M?y:M,F=e.buttonRef,T=(0,f.useI18n)(),__=T.__,R=T.hasTranslation,D=(0,u.bU)(),$=(0,l.Iu)(),j=!(0,c.useViewportMatch)("small",">="),B=n.indexOf("."),U=n.slice(0,B),G=n.slice(B),H=g.useState(),V=(0,i.Z)(H,2),z=V[0],W=V[1],Y=g.useState(),q=(0,i.Z)(Y,2),K=q[0],J=q[1],X=__("Default","full-site-editing"),Q=__("Free","full-site-editing"),ee=L===_?X:Q,te=__("Included with annual plans","full-site-editing"),ne=__("Included in annual plans","full-site-editing"),re="en"===D||null!=R&&R("Included in annual plans")?ne:te,ie=__("<strong>First year included</strong> in paid plans","full-site-editing"),oe=__("<strong>First year included</strong> in annual plans","full-site-editing"),ae="en"===D||null!=R&&R("<strong>First year included</strong> in annual plans")?oe:ie,ue=j?re:(0,o.createInterpolateElement)(ae,{strong:(0,o.createElement)("strong",null)});g.useEffect((function(){n!==z&&K!==S&&S&&(k(),W(n),J(S))}),[n,z,K,S,k]);var le=function(){K&&(0,a.Lo)({action:"domain_selected",railcarId:K}),O(n)},se=__("Selected","full-site-editing"),ce=__("Select","full-site-editing");return(0,o.createElement)(v.Z,{ref:F,type:L,key:U,className:m()("domain-picker__suggestion-item",{"is-free":x,"is-selected":Z,"is-unavailable":t},"type-".concat(L)),onClick:L!==b?le:void 0,disabled:t},L===y&&(r?(0,o.createElement)(s.Spinner,null):(0,o.createElement)("span",{className:m()("domain-picker__suggestion-radio-circle",{"is-checked":Z,"is-unavailable":t})})),(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,o.createElement)("span",{className:m()("domain-picker__domain-wrapper",{"with-margin":!A})},(0,o.createElement)("span",{className:"domain-picker__domain-sub-domain"},U),(0,o.createElement)("span",{className:"domain-picker__domain-tld"},G)),I&&!t&&(0,o.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),A&&(0,o.createElement)(h.Z,{position:j?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,o.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,o.createElement)("b",null,G),learn_more_link:(0,o.createElement)("a",{target:"_blank",rel:"noreferrer",href:$("https://wordpress.com/support/https-ssl")})}))),C&&L!==_&&(0,o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,o.createElement)("div",{className:m()("domain-picker__price",{"is-paid":!x})},t&&__("Unavailable","full-site-editing"),x&&!t&&ee,!x&&!t&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"domain-picker__price-cost"},(0,d.sprintf)(__("%s/year","full-site-editing"),p)),(0,o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",ue," "),(0,o.createElement)("span",{className:"domain-picker__price-renewal"},(0,d.sprintf)(__("Renews at: %s /year","full-site-editing"),p)))),L===b&&(r?(0,o.createElement)(s.Spinner,null):(0,o.createElement)("div",{className:"domain-picker__action"},(0,o.createElement)(s.Button,{ref:F,isSecondary:!0,className:m()("domain-picker__suggestion-select-button",{"is-selected":Z&&!t}),disabled:t,onClick:le},Z&&!t?se:ce))))};t.ZP=g.forwardRef((function(e,t){return(0,o.createElement)(S,(0,r.Z)({},e,{buttonRef:t}))}))},605:function(e,t,n){"use strict";var r=n(3027),i=n(9211),o=n(8675),a=(n(3804),n(7226));t.Z=function(e){var t=e.onClick,n=(0,o.useI18n)(),__=n.__,_x=n._x;return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:t},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(i.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(6115),a=n(584),u=n(7997),l=n(5869),s=n(7108),c=n(8675),d=n(1205),f=n(3804),p=n.n(f),m=n(3300),g=n(5241),h=n(1045),v=n(1071),y=n(3446),b=n(7003),_=n(6325),S=n(6461),E=n(1614),A=n(605),w=(n(5592),function(e){var t=e.groupItems,n=e.children;return t?(0,i.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,i.createElement)(f.Fragment,null,n)}),x=function(e){var t=e.children;return(0,i.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,P=e.showDomainCategories,C=e.onDomainSelect,N=e.onExistingSubdomainSelect,I=e.quantity,O=void 0===I?m.SL:I,k=e.quantityExpanded,Z=void 0===k?m.Mm:k,M=e.onDomainSearchBlur,L=e.analyticsFlowId,F=e.analyticsUiAlgo,T=e.initialDomainSearch,R=void 0===T?"":T,D=e.onSetDomainSearch,$=e.currentDomain,j=e.isCheckingDomainAvailability,B=e.existingSubdomain,U=e.segregateFreeAndPaid,G=void 0!==U&&U,H=e.showSearchField,V=void 0===H||H,z=e.itemType,W=void 0===z?S.fe:z,Y=e.locale,q=e.areDependenciesLoading,K=void 0!==q&&q,J=e.orderSubDomainsLast,X=void 0!==J&&J,Q=e.onUseYourDomainClick,ee=e.vendor,te=void 0===ee?(0,y.iY)():ee,ne=e.showRecommendationLabel,re=void 0===ne||ne,__=(0,c.useI18n)().__,ie=__("Search for a domain","full-site-editing"),oe=(0,f.useState)(!1),ae=(0,r.Z)(oe,2),ue=ae[0],le=ae[1],se=(0,f.useState)(R),ce=(0,r.Z)(se,2),de=ce[0],fe=ce[1],pe=(0,f.useState)(),me=(0,r.Z)(pe,2),ge=me[0],he=me[1],ve=(0,g.O)(de.trim(),Z,ge,Y)||{},ye=ve.allDomainSuggestions,be=ve.errorMessage,_e=ve.state,Se=ve.retryRequest,Ee=null==ye?void 0:ye.filter((function(e){return!(B&&e.is_free)})).slice(0,ue?Z-1:O-1),Ae=null==Ee?void 0:Ee.findIndex((function(e){return!e.is_free&&!e.unavailable})),we=(0,h.$)(Ee,B,$);we&&(null==Ee||Ee.push(we));var xe=(0,v.P)();(0,f.useEffect)((function(){le(!1)}),[de]);var Pe=(0,f.useState)(),Ce=(0,r.Z)(Pe,2),Ne=Ce[0],Ie=Ce[1];(0,f.useEffect)((function(){ye&&Ie((0,o.k9)("suggestion"))}),[ye,Ie]),(0,f.useEffect)((function(){V||fe(R)}),[R,V]);var Oe=p().useRef([]);(0,f.useEffect)((function(){var e,t;ue&&(null===(e=Oe.current[O])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[ue,O]);var ke=function(e,t,n,r){var i="/domains/search/".concat(te,"/").concat(L).concat(ge?"/"+ge:"");(0,o.Sn)({uiAlgo:"/".concat(L,"/").concat(F),fetchAlgo:i,query:de,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Ze=p().useRef(),Me=_e===a.r.Failure,Le=(null===(t=de.trim)||void 0===t?void 0:t.call(de).length)<=1,Fe=!Me&&!Le,Te=!Me&&Le,Re=O;we&&(Re+=1),Q&&(Re+=1),B&&(Re-=1);var De=["professional"];return B&&De.unshift("sub-domain"),X&&De.reverse(),(0,i.createElement)("div",{className:"domain-picker"},n&&n,V&&(0,i.createElement)("div",{className:"domain-picker__search"},(0,i.createElement)("form",{action:"",onSubmit:function(e){var t;e.preventDefault(),null==Ze||null===(t=Ze.current)||void 0===t||t.blur()}},(0,i.createElement)("div",{className:"domain-picker__search-icon"},(0,i.createElement)(l.Z,{icon:s.Z})),(0,i.createElement)(u.TextControl,{ref:function(e){Ze.current=e},hideLabelFromVision:!0,name:"search",label:ie,placeholder:ie,onChange:function(e){fe(e),D&&D(e)},onBlur:function(e){M&&M(e.currentTarget.value)},value:de,dir:"ltr"}))),Me&&(0,i.createElement)(u.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,i.createElement)("p",{className:"domain-picker__error-message"},be||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,i.createElement)(u.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:Se},__("Retry","full-site-editing"))),(Fe||K)&&(0,i.createElement)("div",{className:"domain-picker__body"},P&&(0,i.createElement)("div",{className:"domain-picker__aside"},(0,i.createElement)(b.Z,{selected:ge,onSelect:he})),(0,i.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,i.createElement)("div",{className:"domain-picker__sugggested-items-container"},De.map((function(e){return"sub-domain"===e?(0,i.createElement)(f.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Keep sub-domain","full-site-editing")),(0,i.createElement)(w,{key:e,groupItems:G},!K&&B&&(0,i.createElement)(S.ZP,{key:null==B?void 0:B.domain_name,domain:null==B?void 0:B.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Ne?"".concat(Ne,0):void 0,onRender:function(){return ke(null==B?void 0:B.domain_name,"".concat(Ne,0),0,!1)},selected:(null==$?void 0:$.domain_name)===(null==B?void 0:B.domain_name),onSelect:function(){null==N||N(null==B?void 0:B.domain_name)},type:W})||(0,i.createElement)(E.Z,{type:W}))):(0,i.createElement)(f.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Professional domains","full-site-editing")),(0,i.createElement)(w,{key:e,groupItems:G},!K&&(null==Ee?void 0:Ee.map((function(e,t){var n,r=null!=B&&B.domain_name?t+1:t,o=t===Ae,a=null===(n=xe[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,u=!a||(null===m.vn||void 0===m.vn?void 0:m.vn.indexOf(a))>-1;return(0,i.createElement)(S.ZP,{ref:function(e){Oe.current[r]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!u||(null==e?void 0:e.unavailable),isLoading:(null==$?void 0:$.domain_name)===e.domain_name&&j,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:re&&o,railcarId:Ne?"".concat(Ne).concat(r):void 0,onRender:function(){return ke(e.domain_name,"".concat(Ne).concat(r),r,o)},onSelect:function(){C(e)},selected:(null==$?void 0:$.domain_name)===e.domain_name,type:W})})))||(0,d.times)(Re,(function(e){return(0,i.createElement)(E.Z,{type:W,key:e})})),Q&&!!Ee&&(0,i.createElement)(A.Z,{onClick:Q})))}))),!ue&&O<Z&&(null==ye?void 0:ye.length)&&(null==ye?void 0:ye.length)>O&&(0,i.createElement)("div",{className:"domain-picker__show-more"},(0,i.createElement)(u.Button,{onClick:function(){return le(!0)},isLink:!0},__("View more results","full-site-editing"))))),Te&&!K&&(0,i.createElement)("div",{className:"domain-picker__empty-state"},(0,i.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,i.createElement)("div",null,(0,i.createElement)(_.q,null))))}},413:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(7997),a=n(5614),u=n(2779),l=n.n(u),s=n(3804);n(125);t.Z=function(e){var t=e.children,n=e.className,u=e.id,c=e.position,d=void 0===c?"bottom center":c,f=e.noArrow,p=void 0===f||f,m=(0,s.useState)(!1),g=(0,r.Z)(m,2),h=g[0],v=g[1];return(0,i.createElement)((function(e){return(0,i.createElement)(o.Button,e)}),{icon:a.Z,onClick:function(e){v(!h),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},h&&(0,i.createElement)(o.Popover,{id:u,className:l()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:p},t))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return i},Mm:function(){return o},F9:function(){return a},dP:function(){return u},GN:function(){return l},vn:function(){return s}});var r=n(8077),i=5,o=10,a=2,u=300,l=r.z2(),s=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(5707),i=n(3300);function o(){return(0,r.useSelect)((function(e){return e(i.GN).getDomainAvailabilities()}),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var r=n(9394),i=n(3258),o=n(5707),a=n(7127),u=n(3300);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=(0,a.Z)(e,u.dP),d=(0,i.Z)(c,1),f=d[0],p=(0,o.useDispatch)(u.GN),m=p.invalidateResolutionForStoreSelector;return(0,o.useSelect)((function(e){if(f&&!(f.length<u.F9)){var i=e(u.GN),o=i.getDomainSuggestions,a=i.getDomainState,c=i.getDomainErrorMessage;return{allDomainSuggestions:o(f,(0,r.Z)({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:l,category_slug:n},s)),state:a(),errorMessage:c(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[f,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(1766),i=n(3258),o=n(3804);function a(e,t,n){var a=o.useState(),u=(0,i.Z)(a,2),l=u[0],s=u[1],c=t&&Array.isArray(e)?[t].concat((0,r.Z)(e)):e;if(o.useEffect((function(){var e=null==c?void 0:c.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=c&&c.length&&!e&&s(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==l?void 0:l.domain_name)}))))return l}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return i},iY:function(){return o}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return a}});var r=n(9394),i=n(1481),o=n(3759);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(0,o.X)(t);if(!a||isNaN(e))return null;var l=(0,r.Z)((0,r.Z)({},a),n),s=l.decimal,c=l.grouping,d=l.precision,f=l.symbol,p=e<0?"-":"",m=(0,i.Y4)(Math.abs(e),{decimals:d,thousandsSep:c,decPoint:s});return n.stripZeros&&(m=u(m,s)),"".concat(p).concat(f).concat(m)}function u(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(1766),i=n(1119),o=n(2699),a=n(6668),u=n(8049),l=n.n(u),s=n(5079),c=n.n(s),d=n(7010),f=n(7839),p=n.n(f),m=n(9830),g=n(3),h=l()("i18n-calypso"),v="number_format_decimals",y="number_format_thousands_sep",b="messages",_=[function(e){return e}],S={};function E(){C.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function A(e){return Array.prototype.slice.call(e)}function w(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&E("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",A(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&E("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",A(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function x(e,t){return e.dcnpgettext(b,t.context,t.original,t.plural,t.count)}function P(e,t){for(var n=_.length-1;n>=0;n--){var r=_[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return x(e.state.tannin,r)}return null}function C(){if(!(this instanceof C))return new C;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:p()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new o.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}C.throwErrors=!1,C.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},C.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},C.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},C.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,g.Z)(e,n,r,i)},C.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},C.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],a=function(e,t){var n=!1===t?"":String(t);if(void 0!==S[n+e])return S[n+e];var r=c()().update(e).digest("hex");return S[n+e]=t?r.substr(0,t):r},u=function(e){return function(t){return t.context?(t.original=a(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=a(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)_.push(u(!1));else{var l=o.substr(5).indexOf("-");if(l<0){var s=Number(o.substr(5));_.push(u(s))}else for(var d=Number(o.substr(5,l)),f=Number(o.substr(6+l)),p=d;p<=f;p++)_.push(u(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new m.Z((0,i.Z)({},b,this.state.locale)),this.state.numberFormatSettings.decimal_point=x(this.state.tannin,w([v])),this.state.numberFormatSettings.thousands_sep=x(this.state.tannin,w([y])),this.state.numberFormatSettings.decimal_point===v&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===y&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},C.prototype.getLocale=function(){return this.state.locale},C.prototype.getLocaleSlug=function(){return this.state.localeSlug},C.prototype.getLocaleVariant=function(){return this.state.localeVariant},C.prototype.isRtl=function(){return"rtl"===this.state.textDirection},C.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},C.prototype.hasTranslation=function(){return!!P(this,w(arguments))},C.prototype.translate=function(){var e=w(arguments),t=P(this,e);if(t||(t=x(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=a.Z.apply(void 0,(0,r.Z)(n))}catch(o){if(!window||!window.console)return;var i=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[i](o):window.console[i]("i18n sprintf error:",n)}}return e.components&&(t=(0,d.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},C.prototype.reRenderTranslations=function(){h("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},C.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},C.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=C},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return l},Iu:function(){return s}});var r=n(914),i=n(3493),o=n(8373),a=n(975),u=new r.Z,l=u.numberFormat.bind(u),s=u.translate.bind(u),c=(u.configure.bind(u),u.setLocale.bind(u),u.getLocale.bind(u),u.getLocaleSlug.bind(u),u.getLocaleVariant.bind(u),u.isRtl.bind(u),u.addTranslations.bind(u),u.reRenderTranslations.bind(u),u.registerComponentUpdateHook.bind(u),u.registerTranslateHook.bind(u),u.state,u.stateObserver,u.on.bind(u),u.off.bind(u),u.emit.bind(u),(0,i.Z)(u),(0,a.Z)(u),(0,o.Z)(u));c.useRtl,c.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(9394),i=n(4659),o=n(4730),a=n(3989),u=n(5663),l=n(9049),s=n(1119),c=n(3027),d=n(3804),f=n.n(d);function p(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var d,p,m=n.displayName||n.name||"";return p=d=function(d){(0,u.Z)(p,d);var f=(0,l.Z)(p);function p(){var e;(0,i.Z)(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=f.call.apply(f,[this].concat(n)),(0,s.Z)((0,a.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,a.Z)(e))),e}return(0,o.Z)(p,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var i=(0,r.Z)((0,r.Z)({locale:e.getLocaleSlug()},this.props),t);return(0,c.createElement)(n,i)}}]),p}(f().Component),(0,s.Z)(d,"displayName","Localized("+m+")"),p}}},3:function(e,t,n){"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,u=void 0===n?".":n,l="";return(l=(o?
12
  /*
13
  * Exposes number format capability
14
  *
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
+ */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,u,l=i(e),s=1;s<arguments.length;s++){for(var c in a=Object(arguments[s]))n.call(a,c)&&(l[c]=a[c]);if(t){u=t(a);for(var d=0;d<u.length;d++)r.call(a,u[d])&&(l[u[d]]=a[u[d]])}}return l}},9500:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=u&&l&&"function"==typeof l.get?l.get:null,c=u&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,y="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,E=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),w=n(3260).custom,x=w&&O(w)?w:null,P="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function C(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function N(e){return String(e).replace(/"/g,"&quot;")}function I(e){return!("[object Array]"!==M(e)||P&&"object"==typeof e&&P in e)}function O(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,i){var u=n||{};if(Z(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!Z(u,"customInspect")||u.customInspect;if("boolean"!=typeof l)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(Z(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return F(t,u);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var g=void 0===u.depth?5:u.depth;if(void 0===r&&(r=0),r>=g&&g>0&&"object"==typeof t)return I(t)?"[Array]":"[Object]";var b=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(u,r);if(void 0===i)i=[];else if(L(i,t)>=0)return"[Circular]";function E(t,n,o){if(n&&(i=i.slice()).push(n),o){var a={depth:u.depth};return Z(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(t,a,r+1,i)}return e(t,u,r+1,i)}if("function"==typeof t){var w=function(e){if(e.name)return e.name;var t=v.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),k=B(t,E);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(k.length>0?" { "+k.join(", ")+" }":"")}if(O(t)){var T=S?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||S?T:R(T)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var U="<"+String(t.nodeName).toLowerCase(),G=t.attributes||[],H=0;H<G.length;H++)U+=" "+G[H].name+"="+C(N(G[H].value),"double",u);return U+=">",t.childNodes&&t.childNodes.length&&(U+="..."),U+="</"+String(t.nodeName).toLowerCase()+">"}if(I(t)){if(0===t.length)return"[]";var V=B(t,E);return b&&!function(e){for(var t=0;t<e.length;t++)if(L(e[t],"\n")>=0)return!1;return!0}(V)?"["+j(V,b)+"]":"[ "+V.join(", ")+" ]"}if(function(e){return!("[object Error]"!==M(e)||P&&"object"==typeof e&&P in e)}(t)){var z=B(t,E);return 0===z.length?"["+String(t)+"]":"{ ["+String(t)+"] "+z.join(", ")+" }"}if("object"==typeof t&&l){if(x&&"function"==typeof t[x])return t[x]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{s.call(e)}catch(U){return!0}return e instanceof Map}catch(t){}return!1}(t)){var W=[];return a.call(t,(function(e,n){W.push(E(n,t,!0)+" => "+E(e,t))})),$("Map",o.call(t),W,b)}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var Y=[];return c.call(t,(function(e){Y.push(E(e,t))})),$("Set",s.call(t),Y,b)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(U){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return D("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(U){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return D("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return D("WeakRef");if(function(e){return!("[object Number]"!==M(e)||P&&"object"==typeof e&&P in e)}(t))return R(E(Number(t)));if(function(e){if(!e||"object"!=typeof e||!y)return!1;try{return y.call(e),!0}catch(t){}return!1}(t))return R(E(y.call(t)));if(function(e){return!("[object Boolean]"!==M(e)||P&&"object"==typeof e&&P in e)}(t))return R(m.call(t));if(function(e){return!("[object String]"!==M(e)||P&&"object"==typeof e&&P in e)}(t))return R(E(String(t)));if(!function(e){return!("[object Date]"!==M(e)||P&&"object"==typeof e&&P in e)}(t)&&!function(e){return!("[object RegExp]"!==M(e)||P&&"object"==typeof e&&P in e)}(t)){var q=B(t,E),K=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",X=!K&&P&&Object(t)===t&&P in t?M(t).slice(8,-1):J?"Object":"",Q=(K||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(X||J?"["+[].concat(X||[],J||[]).join(": ")+"] ":"");return 0===q.length?Q+"{}":b?Q+"{"+j(q,b)+"}":Q+"{ "+q.join(", ")+" }"}return String(t)};var k=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return k.call(e,t)}function M(e){return g.call(e)}function L(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function F(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return F(e.slice(0,t.maxStringLength),t)+r}return C(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,T),"single",t)}function T(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function R(e){return"Object("+e+")"}function D(e){return e+" { ? }"}function $(e,t,n,r){return e+" ("+t+") {"+(r?j(n,r):n.join(", "))+"}"}function j(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function B(e,t){var n=I(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Z(e,i)?t(e[i],e):""}var o,a="function"==typeof b?b(e):[];if(S){o={};for(var u=0;u<a.length;u++)o["$"+a[u]]=a[u]}for(var l in e)Z(e,l)&&(n&&String(Number(l))===l&&l<e.length||S&&o["$"+l]instanceof Symbol||(/[^\w$]/.test(l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof b)for(var s=0;s<a.length;s++)E.call(e,a[s])&&r.push("["+t(a[s])+"]: "+t(e[a[s]],e));return r}},8650:function(e){var t,n=window.ProgressEvent,r=!!n;try{t=new n("loaded"),r="loaded"===t.type,t=null}catch(i){r=!1}e.exports=r?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},8262:function(e,t,n){"use strict";var r=n(3586);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},3980:function(e,t,n){e.exports=n(8262)()},3586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5527:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},9126:function(e,t,n){"use strict";var r=n(6845),i=n(9166),o=n(5527);e.exports={formats:o,parse:i,stringify:r}},9166:function(e,t,n){"use strict";var r=n(2493),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(o),s=u?o.slice(0,u.index):o,c=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var d=0;n.depth>0&&null!==(u=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+o.slice(u.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,u=e[o];if("[]"===u&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var s="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(s,10);n.parseArrays||""!==s?!isNaN(c)&&u!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[s]=i:a={0:i}}i=a}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,s={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?m="utf-8":"utf8=%26%2310003%3B"===f[n]&&(m="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var g,h,v=f[n],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(g=t.decoder(v,a.decoder,m,"key"),h=t.strictNullHandling?null:""):(g=t.decoder(v.slice(0,b),a.decoder,m,"key"),h=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),h&&t.interpretNumericEntities&&"iso-8859-1"===m&&(h=u(h)),v.indexOf("[]=")>-1&&(h=o(h)?[h]:h),i.call(s,g)?s[g]=r.combine(s[g],h):s[g]=h}return s}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(c),p=0;p<f.length;++p){var m=f[p],g=s(m,c[m],n,"string"==typeof e);d=r.merge(d,g,n)}return!0===n.allowSparse?d:r.compact(d)}},6845:function(e,t,n){"use strict";var r=n(4294),i=n(2493),o=n(5527),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,s=Array.prototype.push,c=function(e,t){s.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m=function e(t,n,o,a,u,s,d,f,m,g,h,v,y,b,_){var S,E=t;if(_.has(t))throw new RangeError("Cyclic object value");if("function"==typeof d?E=d(n,E):E instanceof Date?E=g(E):"comma"===o&&l(E)&&(E=i.maybeMap(E,(function(e){return e instanceof Date?g(e):e}))),null===E){if(a)return s&&!y?s(n,p.encoder,b,"key",h):n;E=""}if("string"==typeof(S=E)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(E))return s?[v(y?n:s(n,p.encoder,b,"key",h))+"="+v(s(E,p.encoder,b,"value",h))]:[v(n)+"="+v(String(E))];var A,w=[];if(void 0===E)return w;if("comma"===o&&l(E))A=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(d))A=d;else{var x=Object.keys(E);A=f?x.sort(f):x}for(var P=0;P<A.length;++P){var C=A[P],N="object"==typeof C&&void 0!==C.value?C.value:E[C];if(!u||null!==N){var I=l(E)?"function"==typeof o?o(n,C):n:n+(m?"."+C:"["+C+"]");_.set(t,!0);var O=r();c(w,e(N,I,o,a,u,s,d,f,m,g,h,v,y,b,O))}}return w};e.exports=function(e,t){var n,i=e,s=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=p.filter;return("function"==typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof s.filter?i=(0,s.filter)("",i):l(s.filter)&&(n=s.filter);var d,f=[];if("object"!=typeof i||null===i)return"";d=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=u[d];n||(n=Object.keys(i)),s.sort&&n.sort(s.sort);for(var h=r(),v=0;v<n.length;++v){var y=n[v];s.skipNulls&&null===i[y]||c(f,m(i[y],y,g,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,h))}var b=f.join(s.delimiter),_=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},2493:function(e,t,n){"use strict";var r=n(5527),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],u=Object.keys(a),l=0;l<u.length;++l){var s=u[l],c=a[s];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:s}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",s=0;s<u.length;++s){var c=u.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?l+=u.charAt(s):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(s)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=u(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},3631:function(e,t,n){"use strict";var r=n(3804),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=n(7201),a=n(4983),u=n(6590),l="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function c(e,t,n,r){var o,u=typeof e;if("undefined"!==u&&"boolean"!==u||(e=null),null===e||"string"===u||"number"===u||"object"===u&&e.$$typeof===i)return n(r,e,""===t?"."+s(e,0):t),1;var d=0,f=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)d+=c(o=e[p],f+s(o,p),n,r);else{var m=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(m){0;for(var g,h=m.call(e),v=0;!(g=h.next()).done;)d+=c(o=g.value,f+s(o,v++),n,r)}else if("object"===u){0;var y=""+e;a(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return d}var d=/\/+/g;function f(e){return(""+e).replace(d,"$&/")}var p,m,g=h,h=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},v=function(e){var t=this;a(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function y(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function b(e,t,n){var i,a,u=e.result,l=e.keyPrefix,s=e.func,c=e.context,d=s.call(c,t,e.count++);Array.isArray(d)?_(d,u,n,o.thatReturnsArgument):null!=d&&(r.isValidElement(d)&&(i=d,a=l+(!d.key||t&&t.key===d.key?"":f(d.key)+"/")+n,d=r.cloneElement(i,{key:a},void 0!==i.props?i.props.children:void 0)),u.push(d))}function _(e,t,n,r,i){var o="";null!=n&&(o=f(n)+"/");var a=y.getPooled(t,o,r,i);!function(e,t,n){null==e||c(e,"",t,n)}(e,b,a),y.release(a)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r),o}return new i(e,t,n,r)},(m=y).instancePool=[],m.getPooled=p||g,m.poolSize||(m.poolSize=10),m.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return u(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return u(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;a(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)_(e[n],t,n,o.thatReturnsArgument);return t}},4294:function(e,t,n){"use strict";var r=n(7286),i=n(2680),o=n(9500),a=r("%TypeError%"),u=r("%WeakMap%",!0),l=r("%Map%",!0),s=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),m=i("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return s(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(l){if(t)return m(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,i){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),c(e,r,i)):l?(t||(t=new l),p(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},9558:function(e,t,n){"use strict";n.d(t,{MS:function(){return r},uj:function(){return i},G$:function(){return o},Ab:function(){return a},Fr:function(){return u},h5:function(){return l},K$:function(){return s},lK:function(){return c}});var r="-ms-",i="-moz-",o="-webkit-",a="comm",u="rule",l="decl",s="@import",c="@keyframes"},2959:function(e,t,n){"use strict";n.d(t,{qR:function(){return l},cD:function(){return s},Ji:function(){return c}});var r=n(9558),i=n(508),o=n(5205),a=n(2050),u=n(4907);function l(e){var t=(0,i.Ei)(e);return function(n,r,i,o){for(var a="",u=0;u<t;u++)a+=e[u](n,r,i,o)||"";return a}}function s(e){return function(t){t.root||(t=t.return)&&e(t)}}function c(e,t,n,l){if(!e.return)switch(e.type){case r.h5:e.return=(0,u.O)(e.value,e.length);break;case r.lK:return(0,a.q)([(0,o.JG)((0,i.gx)(e.value,"@","@"+r.G$),e,"")],l);case r.Fr:if(e.length)return(0,i.$e)(e.props,(function(t){switch((0,i.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,a.q)([(0,o.JG)((0,i.gx)(t,/:(read-\w+)/,":"+r.uj+"$1"),e,"")],l);case"::placeholder":return(0,a.q)([(0,o.JG)((0,i.gx)(t,/:(plac\w+)/,":"+r.G$+"input-$1"),e,""),(0,o.JG)((0,i.gx)(t,/:(plac\w+)/,":"+r.uj+"$1"),e,""),(0,o.JG)((0,i.gx)(t,/:(plac\w+)/,r.MS+"input-$1"),e,"")],l)}return""}))}}},2328:function(e,t,n){"use strict";n.d(t,{MY:function(){return a}});var r=n(9558),i=n(508),o=n(5205);function a(e){return(0,o.cE)(u("",null,null,null,[""],e=(0,o.un)(e),0,[0],e))}function u(e,t,n,r,a,d,f,p,m){for(var g=0,h=0,v=f,y=0,b=0,_=0,S=1,E=1,A=1,w=0,x="",P=a,C=d,N=r,I=x;E;)switch(_=w,w=(0,o.lp)()){case 34:case 39:case 91:case 40:I+=(0,o.iF)(w);break;case 9:case 10:case 13:case 32:I+=(0,o.Qb)(_);break;case 92:I+=(0,o.kq)((0,o.Ud)()-1,7);continue;case 47:switch((0,o.fj)()){case 42:case 47:(0,i.R3)(s((0,o.q6)((0,o.lp)(),(0,o.Ud)()),t,n),m);break;default:I+="/"}break;case 123*S:p[g++]=(0,i.to)(I)*A;case 125*S:case 59:case 0:switch(w){case 0:case 125:E=0;case 59+h:b>0&&(0,i.to)(I)-v&&(0,i.R3)(b>32?c(I+";",r,n,v-1):c((0,i.gx)(I," ","")+";",r,n,v-2),m);break;case 59:I+=";";default:if((0,i.R3)(N=l(I,t,n,g,h,a,p,x,P=[],C=[],v),d),123===w)if(0===h)u(I,t,N,N,P,d,v,p,C);else switch(y){case 100:case 109:case 115:u(e,N,N,r&&(0,i.R3)(l(e,N,N,0,0,a,p,x,a,P=[],v),C),a,C,v,p,r?P:C);break;default:u(I,N,N,N,[""],C,v,p,C)}}g=h=b=0,S=A=1,x=I="",v=f;break;case 58:v=1+(0,i.to)(I),b=_;default:if(S<1)if(123==w)--S;else if(125==w&&0==S++&&125==(0,o.mp)())continue;switch(I+=(0,i.Dp)(w),w*S){case 38:A=h>0?1:(I+="\f",-1);break;case 44:p[g++]=((0,i.to)(I)-1)*A,A=1;break;case 64:45===(0,o.fj)()&&(I+=(0,o.iF)((0,o.lp)())),y=(0,o.fj)(),h=(0,i.to)(x=I+=(0,o.QU)((0,o.Ud)())),w++;break;case 45:45===_&&2==(0,i.to)(I)&&(S=0)}}return d}function l(e,t,n,a,u,l,s,c,d,f,p){for(var m=u-1,g=0===u?l:[""],h=(0,i.Ei)(g),v=0,y=0,b=0;v<a;++v)for(var _=0,S=(0,i.tb)(e,m+1,m=(0,i.Wn)(y=s[v])),E=e;_<h;++_)(E=(0,i.fy)(y>0?g[_]+" "+S:(0,i.gx)(S,/&\f/g,g[_])))&&(d[b++]=E);return(0,o.dH)(e,t,n,0===u?r.Fr:c,d,f,p)}function s(e,t,n){return(0,o.dH)(e,t,n,r.Ab,(0,i.Dp)((0,o.Tb)()),(0,i.tb)(e,2,-2),0)}function c(e,t,n,a){return(0,o.dH)(e,t,n,r.h5,(0,i.tb)(e,0,a),(0,i.tb)(e,a+1,-1),a)}},4907:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(9558),i=n(508);function o(e,t){switch((0,i.vp)(e,t)){case 5103:return r.G$+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r.G$+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return r.G$+e+r.uj+e+r.MS+e+e;case 6828:case 4268:return r.G$+e+r.MS+e+e;case 6165:return r.G$+e+r.MS+"flex-"+e+e;case 5187:return r.G$+e+(0,i.gx)(e,/(\w+).+(:[^]+)/,r.G$+"box-$1$2"+r.MS+"flex-$1$2")+e;case 5443:return r.G$+e+r.MS+"flex-item-"+(0,i.gx)(e,/flex-|-self/,"")+e;case 4675:return r.G$+e+r.MS+"flex-line-pack"+(0,i.gx)(e,/align-content|flex-|-self/,"")+e;case 5548:return r.G$+e+r.MS+(0,i.gx)(e,"shrink","negative")+e;case 5292:return r.G$+e+r.MS+(0,i.gx)(e,"basis","preferred-size")+e;case 6060:return r.G$+"box-"+(0,i.gx)(e,"-grow","")+r.G$+e+r.MS+(0,i.gx)(e,"grow","positive")+e;case 4554:return r.G$+(0,i.gx)(e,/([^-])(transform)/g,"$1"+r.G$+"$2")+e;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(e,/(zoom-|grab)/,r.G$+"$1"),/(image-set)/,r.G$+"$1"),e,"")+e;case 5495:case 3959:return(0,i.gx)(e,/(image-set\([^]*)/,r.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(e,/(.+:)(flex-)?(.*)/,r.G$+"box-pack:$3"+r.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r.G$+e+e;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(e,/(.+)-inline(.+)/,r.G$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.to)(e)-1-t>6)switch((0,i.uO)(e,t+1)){case 109:if(45!==(0,i.uO)(e,t+4))break;case 102:return(0,i.gx)(e,/(.+:)(.+)-([^]+)/,"$1"+r.G$+"$2-$3$1"+r.uj+(108==(0,i.uO)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,i.Cw)(e,"stretch")?o((0,i.gx)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,i.uO)(e,t+1))break;case 6444:switch((0,i.uO)(e,(0,i.to)(e)-3-(~(0,i.Cw)(e,"!important")&&10))){case 107:return(0,i.gx)(e,":",":"+r.G$)+e;case 101:return(0,i.gx)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+r.G$+(45===(0,i.uO)(e,14)?"inline-":"")+"box$3$1"+r.G$+"$2$3$1"+r.MS+"$2box$3")+e}break;case 5936:switch((0,i.uO)(e,t+11)){case 114:return r.G$+e+r.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return r.G$+e+r.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return r.G$+e+r.MS+(0,i.gx)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return r.G$+e+r.MS+e+e}return e}},2050:function(e,t,n){"use strict";n.d(t,{q:function(){return o},P:function(){return a}});var r=n(9558),i=n(508);function o(e,t){for(var n="",r=(0,i.Ei)(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function a(e,t,n,a){switch(e.type){case r.K$:case r.h5:return e.return=e.return||e.value;case r.Ab:return"";case r.Fr:e.value=e.props.join(",")}return(0,i.to)(n=o(e.children,a))?e.return=e.value+"{"+n+"}":""}},5205:function(e,t,n){"use strict";n.d(t,{FK:function(){return u},dH:function(){return c},JG:function(){return d},Tb:function(){return f},mp:function(){return p},lp:function(){return m},fj:function(){return g},Ud:function(){return h},r:function(){return y},un:function(){return b},cE:function(){return _},iF:function(){return S},Qb:function(){return E},kq:function(){return A},q6:function(){return x},QU:function(){return P}});var r=n(508),i=1,o=1,a=0,u=0,l=0,s="";function c(e,t,n,r,a,u,l){return{value:e,root:t,parent:n,type:r,props:a,children:u,line:i,column:o,length:l,return:""}}function d(e,t,n){return c(e,t.root,t.parent,n,t.props,t.children,0)}function f(){return l}function p(){return l=u>0?(0,r.uO)(s,--u):0,o--,10===l&&(o=1,i--),l}function m(){return l=u<a?(0,r.uO)(s,u++):0,o++,10===l&&(o=1,i++),l}function g(){return(0,r.uO)(s,u)}function h(){return u}function v(e,t){return(0,r.tb)(s,e,t)}function y(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b(e){return i=o=1,a=(0,r.to)(s=e),u=0,[]}function _(e){return s="",e}function S(e){return(0,r.fy)(v(u-1,w(91===e?e+2:40===e?e+1:e)))}function E(e){for(;(l=g())&&l<33;)m();return y(e)>2||y(l)>3?"":" "}function A(e,t){for(;--t&&m()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return v(e,h()+(t<6&&32==g()&&32==m()))}function w(e){for(;m();)switch(l){case e:return u;case 34:case 39:return w(34===e||39===e?e:l);case 40:41===e&&w(e);break;case 92:m()}return u}function x(e,t){for(;m()&&e+l!==57&&(e+l!==84||47!==g()););return"/*"+v(t,u-1)+"*"+(0,r.Dp)(47===e?e:m())}function P(e){for(;!y(g());)m();return v(e,u)}},508:function(e,t,n){"use strict";n.d(t,{Wn:function(){return r},Dp:function(){return i},vp:function(){return o},fy:function(){return a},EQ:function(){return u},gx:function(){return l},Cw:function(){return s},uO:function(){return c},tb:function(){return d},to:function(){return f},Ei:function(){return p},R3:function(){return m},$e:function(){return g}});var r=Math.abs,i=String.fromCharCode;function o(e,t){return(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3)}function a(e){return e.trim()}function u(e,t){return(e=t.exec(e))?e[0]:e}function l(e,t,n){return e.replace(t,n)}function s(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function m(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1184),i={contextDelimiter:"",onMissingKey:null};function o(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},i)this.options[n]=void 0!==t&&n in t?t[n]:i[n]}o.prototype.getPluralForm=function(e,t){var n,i,o,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(i=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=(0,r.Z)(i)),a=this.pluralForms[e]=o),a(t)},o.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,u;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(u=this.data[e][a])&&u[o]?u[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var r=function(){try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},7989:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(849),u=n(4655),l=n(6357),s=n(5707),c=n(5799),d=n(1200),f=n(3804),p=n.n(f),m=n(365),g=n(1157),h=n(9095),v=n(8318),y=n(8550);r="a8c-editor-site-launch",i={render:function(){var e,t,n=(0,s.useSelect)((function(e){return e(v.sC).getState()})).isSidebarOpen,r=(0,s.useDispatch)(v.sC),i=r.closeSidebar,d=r.setSidebarFullscreen,f=r.unsetSidebarFullscreen;return p().useEffect((function(){window.innerWidth<782?d():f()}),[n,d,f]),p().useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,c.hasAction)(e)&&(0,c.doAction)(e,{hidden:n})}),[n]),n?(0,o.createElement)(a.Iw,{localeSlug:null!==(e=null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)&&void 0!==e?e:u.OP},(0,o.createElement)(l.Z.Provider,{value:{siteId:window._currentSiteId,flow:g.OS,redirectTo:y.gQ,openCheckout:y.Rd,getCurrentLaunchFlowUrl:y.O0,isInIframe:(0,m.y)()}},(0,o.createElement)(h.Z,{onClose:i}))):null}},(0,d.registerPlugin)(r,i)},1157:function(e,t,n){"use strict";n.d(t,{OS:function(){return r},Js:function(){return i},nU:function(){return o}});var r="gutenboarding",i="focused-launch",o="should_launch"},6915:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=n(5707),a=n(8675),u=(n(3804),n(8318)),l=n(8374);n(4919);t.Z=function(e){var t,n=e.onMenuItemClick,__=(0,a.useI18n)().__,s=(0,o.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),c=s.currentStep,d=s.LaunchStep,f=s.LaunchSequence,p=s.isStepCompleted,m=s.isFlowCompleted,g=(t={},(0,r.Z)(t,d.Name,__("Name your site","full-site-editing")),(0,r.Z)(t,d.Domain,__("Select a domain","full-site-editing")),(0,r.Z)(t,d.Plan,__("Select a plan","full-site-editing")),(0,r.Z)(t,d.Final,__("Launch your site","full-site-editing")),t),h=(0,o.useDispatch)(u.sC).setStep;return(0,i.createElement)("div",{className:"nux-launch-menu"},(0,i.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,i.createElement)("div",{className:"nux-launch-menu__item-group"},f.map((function(e){return(0,i.createElement)(l.Z,{key:e,title:g[e],isCompleted:p(e),isCurrent:e===c,onClick:function(){return function(e){h(e),n(e)}(e)},isDisabled:e===d.Final&&!m})}))))}},8374:function(e,t,n){"use strict";var r=n(3027),i=n(7997),o=n(5869),a=n(9806),u=n(2779),l=n.n(u),s=(n(3804),(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(i.Circle,{cx:"12",cy:"12",r:"5"})));t.Z=function(e){var t=e.title,n=e.isCompleted,u=e.isCurrent,c=e.isDisabled,d=e.onClick;return(0,r.createElement)(i.Button,{className:l()("nux-launch-menu__item",{"is-current":u,"is-completed":n}),onClick:d,disabled:c,isLink:!0},(0,r.createElement)(o.Z,{icon:n?a.Z:s,size:16}),(0,r.createElement)("span",null,t))}},9095:function(e,t,n){"use strict";var r=n(6470),i=n(3258),o=n(3027),a=n(849),u=n(6357),l=n(3357),s=n(7997),c=n(5707),d=n(3163),f=n(5869),p=n(1742),m=n(8565),g=n(2779),h=n.n(g),v=n(3804),y=n.n(v),b=n(8398),_=n(2526),S=n(2326),E=n(8318),__=(n(7280),d.__);t.Z=function(e){var t=e.onClose,n=e.isLaunchImmediately,d=y().useContext(u.Z).siteId,g=(0,c.useSelect)((function(e){return e(E.sC).getState()})),v=g.step,A=g.isSidebarFullscreen,w=y().useState(!1),x=(0,i.Z)(w,2),P=x[0],C=x[1],N=y().useState(!1),I=(0,i.Z)(N,2),O=I[0],k=I[1],Z=(0,c.useDispatch)(E.j4).launchSite,M=(0,c.useDispatch)("core/editor").savePost,L=(0,a.bU)(),F=(0,c.useDispatch)(E.sC).setPlanProductId,T=(0,c.useSelect)((function(e){return e(E.Fs).getDefaultFreePlan(L)})),R=y().useCallback((function(){Z(d),C(!0)}),[Z,C,d]);return y().useEffect((function(){n&&!P&&C(!0)}),[P,n]),y().useEffect((function(){var e=function(){var e=(0,r.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n&&!O&&null!=T&&T.productIds[0]&&(F(null==T?void 0:T.productIds[0]),k(!0),e(),R())}),[n,O,R,M,T,F]),(0,l.X)(),(0,o.createElement)(s.Modal,{open:!0,className:h()("nux-launch-modal","step-".concat(v),A?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},P?(0,o.createElement)("div",{className:"nux-launch-modal-body__launching"},__("Hooray! Your site will be ready shortly.","full-site-editing")):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"nux-launch-modal-body"},(0,o.createElement)("div",{className:"nux-launch-modal-header"},(0,o.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,o.createElement)(f.Z,{icon:p.Z,size:36})),(0,o.createElement)(_.Z,null)),(0,o.createElement)(b.Z,{onSubmit:R})),(0,o.createElement)("div",{className:"nux-launch-modal-aside"},(0,o.createElement)(S.Z,null)),(0,o.createElement)(s.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":__("Close dialog","full-site-editing"),disabled:!t},(0,o.createElement)("span",null,(0,o.createElement)(f.Z,{icon:m.Z,size:24})))))}},2526:function(e,t,n){"use strict";var r=n(3027),i=n(5707),o=n(3163),a=n(8675),u=(n(3804),n(8318));n(3232);t.Z=function(){var __=(0,a.useI18n)().__,e=(0,i.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),t=e.currentStep,n=e.LaunchSequence,l=n.indexOf(t)+1,s=n.length,c=(0,o.sprintf)(__("%1$d of %2$d","full-site-editing"),l,s);return(0,r.createElement)("div",{className:"nux-launch-progress"},c)}},2326:function(e,t,n){"use strict";var r=n(3027),i=n(5915),o=n(9211),a=n(5707),u=n(3163),l=(n(3804),n(6915)),s=n(8318),__=(n(1128),u.__);t.Z=function(){var e=(0,a.useDispatch)(s.sC),t=e.setStep,n=e.unsetSidebarFullscreen,u=(0,a.useSelect)((function(e){return e(s.sC).getLaunchSequence()}));return(0,r.createElement)("div",{className:"nux-launch-sidebar"},(0,r.createElement)("div",{className:"nux-launch-sidebar__header"},(0,r.createElement)(i.b,null,__("You're almost there!","full-site-editing")),(0,r.createElement)(i.D,null,__("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,r.createElement)("div",{className:"nux-launch-sidebar__body"},(0,r.createElement)(l.Z,{onMenuItemClick:function(){n()}})),(0,r.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,r.createElement)(o.ZP,{sticky:!0},(0,r.createElement)(o.aW,{onClick:function(){t(u[0]),n()}},__("Get Started","full-site-editing")))))}},381:function(e,t,n){"use strict";var r=n(3027);n(3804),n(8306);t.Z=function(e){var t=e.children;return(0,r.createElement)(r.Fragment,null,t)}},9270:function(e,t,n){"use strict";var r=n(3027),i=n(6115),o=n(2999),a=n(3446),u=n(849),l=n(780),s=n(5144),c=n(6956),d=n(5915),f=n(9211),p=n(5707),m=n(8675),g=(n(3804),n(1157)),h=n(381),v=n(8318);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,y=(0,m.useI18n)(),__=y.__,b=y.hasTranslation,_=(0,u.bU)(),S=(0,l.my)(),E=S.onDomainSelect,A=S.onExistingSubdomainSelect,w=S.currentDomain,x=(0,s.j)().siteSubdomain,P=(0,c.f)(),C=P.domainSearch,N=P.setDomainSearch,I=(0,p.useDispatch)(v.sC).confirmDomainSelection,O=function(){I(),null==n||n()},k=__("Free for the first year with any paid plan.","full-site-editing"),Z=__("Free for the first year with any annual plan.","full-site-editing"),M="en"===_||null!=b&&b("Free for the first year with any annual plan.")?Z:k;return(0,r.createElement)(h.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(d.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(d.D,null,M)),(0,r.createElement)(f.ZP,{sticky:!1},(0,r.createElement)(f.aW,{onClick:O,disabled:!C}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(o.ZP,{analyticsFlowId:g.OS,initialDomainSearch:C,onSetDomainSearch:N,onDomainSearchBlur:function(e){(0,i.jN)("calypso_newsite_domain_search_blur",{flow:g.OS,query:e,where:"editor_domain_modal"})},currentDomain:w||(0,a.nf)(null==x?void 0:x.domain),existingSubdomain:(0,a.nf)(null==x?void 0:x.domain),onDomainSelect:E,onExistingSubdomainSelect:A,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:_})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(f.ZP,{sticky:!0},(0,r.createElement)(f.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(f.aW,{onClick:O,disabled:!C}))))}},4502:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(7384),a=n(1806),u=n(7450),l=n(849),s=n(7498),c=n(4557),d=n(5144),f=n(8463),p=n(6956),m=n(5915),g=n(9211),h=n(3509),v=n(7997),y=n(5707),b=n(3163),_=n(5869),S=n(9806),E=n(8675),A=n(2779),w=n.n(A),x=(n(3804),n(381)),P=n(8318),C=(n(4734),(0,i.createElement)(_.Z,{icon:S.Z,size:17}));t.Z=function(e){var t=e.onNextStep,n=e.onPrevStep,_=(0,y.useSelect)((function(e){var t=e(P.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),S=_.domain,A=_.LaunchStep,N=_.isStepCompleted,I=_.isFlowCompleted,O=_.planProductId,k=(0,E.useI18n)(),__=k.__,Z=k.hasTranslation,M=(0,l.bU)(),L=(0,y.useSelect)((function(e){return[e(P.Fs).getPlanByProductId(O,M),e(P.Fs).getPlanProductById(O)]})),F=(0,r.Z)(L,2),T=F[0],R=F[1],D=(0,c.Z)().title,$=(0,d.j)().siteSubdomain,j=(0,f.V)(),B=(0,p.f)().domainSearch,U=(0,y.useDispatch)(P.sC).setStep,G=(0,s.Iu)(),H=(0,i.createElement)("div",{className:"nux-launch__summary-item"},(0,i.createElement)("p",null,__("Site","full-site-editing"),": ",D)),V=(0,i.createElement)("div",{className:"nux-launch__summary-item"},null!=S&&S.domain_name?(0,i.createElement)("p",null,__("Custom domain","full-site-editing"),": ",S.domain_name,"MONTHLY"===(null==R?void 0:R.billingPeriod)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("br",null),(0,i.createElement)("span",{className:"nux-launch__summary-item__domain-price"},__("Domain Registration","full-site-editing"),":"," ",(0,b.sprintf)(__("%s/year","full-site-editing"),S.cost)))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",null,__("Free site address","full-site-editing"),": ",null==$?void 0:$.domain),(0,i.createElement)(v.Tip,null,B?(0,i.createInterpolateElement)(__("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:(0,i.createElement)("span",{className:w()("nux-launch__summary-item__domain-name",{"is-loading":!j})},(null==j?void 0:j.domain_name)||"loading-example.com"),Link:(0,i.createElement)(v.Button,{isLink:!0,onClick:function(){return U(A.Domain)}})}):__("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),z=__("billed annually","full-site-editing"),W=__("per month, billed as %s annually","full-site-editing"),Y="en"===M||null!=Z&&Z("per month, billed as %s annually")?(0,b.sprintf)(W,null==R?void 0:R.annualPrice):z,q=__("per month, billed monthly","full-site-editing"),K=(0,i.createElement)("div",{className:"nux-launch__summary-item"},T&&R&&!T.isFree?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",T.title),__("Plan subscription","full-site-editing"),": ",R.price," ","ANNUALLY"===R.billingPeriod?Y:q):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,i.createElement)("p",null,__("Plan subscription: Free forever","full-site-editing")),(0,i.createElement)(v.Tip,null,(0,i.createInterpolateElement)((0,b.sprintf)(__("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer %1$d-day full-refunds, guaranteed.","full-site-editing"),14),{Link:(0,i.createElement)(v.Button,{isLink:!0,onClick:function(){return U(A.Plan)}})}))));return(0,i.createElement)(x.Z,null,(0,i.createElement)("div",{className:"nux-launch-step__header"},(0,i.createElement)("div",null,(0,i.createElement)(m.b,null,__("Launch your site","full-site-editing")),(0,i.createElement)(m.D,null,__("Your site will be made public and ready to share with others.","full-site-editing")))),(0,i.createElement)("div",{className:"nux-launch-step__body"},(0,i.createElement)(h.a,{theme:o.Z},(0,i.createElement)(a._U,null,N(A.Plan)&&(0,i.createElement)(a.Bb,null,(0,i.createElement)(a.nb,{className:"nux-launch__feature-list"},(0,i.createElement)("h3",{className:"nux-launch__feature-list-title"},__("Included in your plan","full-site-editing")),(0,i.createElement)("ul",{className:"nux-launch__feature-item-group"},null==T?void 0:T.features.filter((function(e){return"ANNUALLY"===(null==R?void 0:R.billingPeriod)||!e.requiresAnnuallyBilledPlan})).map((function(e,t){return(0,i.createElement)("li",{key:t,className:"nux-launch__feature-item"},C," ",e.name)}))),(0,i.createElement)("p",null,__("Questions?","full-site-editing")," ",(0,i.createElement)(v.Button,{isLink:!0,href:G("https://wordpress.com/help/contact",M),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing"))))),(0,i.createElement)(a.r8,null,(0,i.createElement)(a.V9,{isStepActive:!1,titleContent:__("Your site name","full-site-editing"),isStepComplete:N(A.Name),goToThisStep:function(){return U(A.Name)},completeStepContent:H,stepId:"name",formStatus:u.PX.READY}),(0,i.createElement)(a.V9,{isStepActive:!1,titleContent:__("Your domain","full-site-editing"),isStepComplete:N(A.Domain),goToThisStep:function(){return U(A.Domain)},completeStepContent:V,stepId:"domain",formStatus:u.PX.READY}),(0,i.createElement)(a.V9,{isStepActive:!1,titleContent:__("Your plan","full-site-editing"),isStepComplete:N(A.Plan),goToThisStep:function(){return U(A.Plan)},completeStepContent:K,stepId:"plan",formStatus:u.PX.READY}),(0,i.createElement)(a.ds,null,(0,i.createElement)(v.Button,{isPrimary:!0,disabled:!I,onClick:t,className:"nux-launch__submit-button"},__("Launch your site","full-site-editing"))))))),(0,i.createElement)("div",{className:"nux-launch-step__footer"},(0,i.createElement)(g.ZP,{sticky:!0},(0,i.createElement)(g.xE,{onClick:function(){null==n||n()}}))))}},958:function(e,t,n){"use strict";var r=n(3027),i=n(4557),o=n(5915),a=n(9211),u=n(7997),l=n(3163),s=(n(3804),n(381)),__=(n(8594),l.__);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,l=(0,i.Z)(),c=l.title,d=l.updateTitle,f=function(){null==n||n()};return(0,r.createElement)(s.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(o.b,null,__("Name your site","full-site-editing")),(0,r.createElement)(o.D,null,__("Pick a name for your site.","full-site-editing"))),(0,r.createElement)(a.ZP,{sticky:!1},(0,r.createElement)(a.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)("form",{onSubmit:f},(0,r.createElement)(u.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:d,value:c||"",spellCheck:!1,autoComplete:"off",placeholder:__("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,r.createElement)("div",{className:"nux-launch-step__input-hint"},(0,r.createElement)(u.Tip,{size:18}),(0,r.createElement)("span",null,__("Don't worry, you can change it later.","full-site-editing"))))),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(a.ZP,{sticky:!0},(0,r.createElement)(a.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(a.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))))}},4524:function(e,t,n){"use strict";var r=n(3027),i=n(3073),o=n(5915),a=n(9211),u=n(5315),l=n(5707),s=n(3163),c=(n(3804),n(381)),d=n(8318),__=(n(7605),s.__);t.Z=function(e){var t,n=e.onPrevStep,f=e.onNextStep,p=(0,l.useSelect)((function(e){var t=e(d.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),m=p.domain,g=p.LaunchStep,h=p.selectedPlanProductId,v=(0,l.useDispatch)(d.sC),y=v.setPlanProductId,b=v.setStep,_=(0,i.W)().selectedFeatures,S=m&&!m.is_free;return(0,r.createElement)(c.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(o.b,null,__("Select a plan","full-site-editing")),(0,r.createElement)(o.D,null,(0,s.sprintf)(__("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14)))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(u.Z,{currentPlanProductId:h,currentDomain:m,onPlanSelect:function(e){y(e),null==f||f()},onPickDomainClick:function(){b(g.Domain)},disabledPlans:S?{free:__("Unavailable with domain","full-site-editing")}:void 0,isAccordion:!0,selectedFeatures:_,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(a.ZP,{sticky:!0},(0,r.createElement)(a.xE,{onClick:function(){null==n||n()}}))))}},8398:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=n(5707),a=n(3804),u=n.n(a),l=n(9270),s=n(4502),c=n(958),d=n(4524),f=n(8318);n(8508);t.Z=function(e){var t,n=e.onSubmit,a=(0,o.useSelect)((function(e){return e(f.sC).getState()})).step,p=(0,o.useSelect)((function(e){return e(f.sC).getLaunchStep()})),m=(0,o.useSelect)((function(e){return e(f.sC).getLaunchSequence()})),g=(0,o.useSelect)((function(e){return e(f.sC).getFirstIncompleteStep()})),h=(0,o.useDispatch)(f.sC),v=h.setStep,y=h.setSidebarFullscreen,b=h.unsetSidebarFullscreen,_=(t={},(0,r.Z)(t,p.Name,c.Z),(0,r.Z)(t,p.Domain,l.Z),(0,r.Z)(t,p.Plan,d.Z),(0,r.Z)(t,p.Final,s.Z),t),S=m.indexOf(a),E=_[a];return u().useEffect((function(){g&&g!==p.Name&&v(g)}),[]),(0,i.createElement)(E,{onPrevStep:function(){var e=S-1;e<0&&(e=0,y()),v(m[e])},onNextStep:function(){var e=S+1;e>m.length-1&&(null==n||n()),b(),v(m[e])}})}},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return i},Fs:function(){return o}});n(8681);var r="automattic/site",i="automattic/launch",o="automattic/onboard/plans"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return l},gQ:function(){return s},Rd:function(){return c}});var r=n(9394),i=n(1119),o=n(5799),a=n(791),u=n(1157),l=function(){var e,t,n;return null!==(e=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.currentCalypsoUrl)&&void 0!==e?e:window.location.href},s=function(e){var t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch(o){}var i=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat(t).concat(i))},c=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2?arguments[2]:void 0,f="a8c.wpcom-block-editor.openCheckoutModal",p=(null===(e=window)||void 0===e||null===(t=e.wpcomEditorSiteLaunch)||void 0===t?void 0:t.launchFlow)===u.Js,m=l().split("?")[0];if((0,o.hasAction)(f)&&p&&!c)(0,o.doAction)(f,{checkoutOnSuccessCallback:d,isFocusedLaunch:!0,redirectTo:(0,a.addQueryArgs)(m,(0,i.Z)({},u.nU,!0))});else{var g=(0,a.addQueryArgs)("/checkout/".concat(n),(0,r.Z)({},!c&&{redirect_to:"/home/".concat(n)}));s(g)}}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return i.Sn},Lo:function(){return i.Lo},k9:function(){return i.k9}});n(1694),n(6209),n(9377);var r=n(9792),i=n(3722)},9377:function(e,t,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r,i=n(9394),o=n(2699),a=n(4898),u=(n(3421),n(1205)),l=(n(9377),n(6209),n(9358)),s=(n(1694),["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"]);Promise.resolve();function c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,a.ve)("//stats.wp.com/w.js?63");var d=new o.EventEmitter;function f(e,t){if(t=t||{},(0,l.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,u.includes)(s,e)){if(r){var n=r(t);t=(0,i.Z)((0,i.Z)({},t),n)}t=(0,u.omitBy)(t,(function(e){return void 0===e})),(0,l.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,l.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return o},Lo:function(){return a},k9:function(){return u}});var r=n(8767),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,u=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:u})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat((0,r.Z)().replace(/-/g,""),"-").concat(e)}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},4790:function(e,t,n){"use strict";var r,i=n(7560),o=n(1766),a=n(4530),u=n(4059),l=n(3027),s=n(2248),c=(n(3804),n(6654)),d=["className","buttonType","isBusy","children","fullWidth"],f=(0,s.Z)("button")(r||(r=(0,u.Z)(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: ",";\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"])),(function(e){return e.fullWidth?"100%":"auto"}),(function(e){return"paypal"===e.buttonType?"50px":"2px"}),(function(e){return"text-button"===e.buttonType?"0":"10px 15px"}),(function(e){return!e.buttonType||e.disabled&&"text-button"!==e.buttonType?"1px solid "+e.theme.colors.borderColor:"0"}),g,m,(function(e){return e.theme.weights.normal}),v,p,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),m,(function(e){return e.disabled?"not-allowed":"pointer"}),p,v,m,(function(e){var t=e.buttonType;return"grayscale( ".concat("primary"===t||"paypal"===t?"0":"100"," ) invert( 0 );")}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),g,h,h,g);function p(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function m(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledButtons;switch(n){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function g(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t&&"text-button"!==n)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function h(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtonsAccent;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function v(e){return"text-button"===e.buttonType?"underline":"none"}t.Z=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,u=e.children,s=e.fullWidth,p=(0,a.Z)(e,d),m=(0,c.Z)(["checkout-button"].concat((0,o.Z)(n?["is-status-"+n]:[]),(0,o.Z)(r?["is-busy"]:[]),(0,o.Z)(t?[t]:[])));return(0,l.createElement)(f,(0,i.Z)({fullWidth:s,buttonType:n,className:m},p),u)}},3246:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,i=n(4659),o=n(4730),a=n(3989),u=n(5663),l=n(9049),s=n(1119),c=n(4059),d=n(3027),f=n(2248),p=n(8049),m=n.n(p),g=n(3804),h=n.n(g),v=m()("composite-checkout:checkout-error-boundary"),y=f.Z.div(r||(r=(0,c.Z)(["\n\tmargin: 2em;\n\ttext-align: center;\n"]))),b=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r;return(0,i.Z)(this,n),r=t.call(this,e),(0,s.Z)((0,a.Z)(r),"state",{hasError:!1}),r}return(0,o.Z)(n,[{key:"componentDidCatch",value:function(e,t){if(this.props.onError){var n="".concat(e.message,"; Stack: ").concat(e.stack,"; Component Stack: ").concat(t.componentStack);v("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,d.createElement)(_,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),n}(h().Component);function _(e){var t=e.errorMessage;return(0,d.createElement)(y,null,t)}},7984:function(e,t,n){"use strict";var r=n(7560),i=n(4530),o=n(3027),a=(n(3804),n(4790)),u=["value","onClick","ariaLabel"];t.Z=function(e){var t=e.value,n=e.onClick,l=e.ariaLabel,s=(0,i.Z)(e,u);return(0,o.createElement)(a.Z,(0,r.Z)({onClick:n,buttonType:"primary","aria-label":l},s),t)}},1806:function(e,t,n){"use strict";n.d(t,{_U:function(){return L},Bb:function(){return T},nb:function(){return R},r8:function(){return D},ds:function(){return $},V9:function(){return G}});var r,i,o,a,u,l,s,c,d,f,p,m,g,h,v,y,b,_=n(4059),S=n(3027),E=n(2248),A=n(8675),w=n(8049),x=n.n(w),P=n(3980),C=n.n(P),N=(n(3804),n(6654)),I=n(7450),O=n(4790),k=n(3246),Z=n(7984),M=n(5197),L=(x()("composite-checkout:checkout"),E.Z.div(r||(r=(0,_.Z)(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"])),(function(e){return e.theme.colors.outline})),E.Z.div(i||(i=(0,_.Z)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp}))),F=E.Z.div(o||(o=(0,_.Z)(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),T=function(e){var t=e.children,n=e.className;return(0,S.createElement)(F,{className:(0,N.Z)([n,"checkout__summary-area"])},t)},R=E.Z.div(a||(a=(0,_.Z)(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"])),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}));var D=E.Z.div(u||(u=(0,_.Z)(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"])),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),$=E.Z.div(l||(l=(0,_.Z)(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t\tmargin: 0 auto;\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"])),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));E.Z.div(s||(s=(0,_.Z)(["\n\tpadding-right: 42px;\n\n\t@media ( "," ) {\n\t\tpadding-right: 0;\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}));var j=E.Z.div(c||(c=(0,_.Z)(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"])),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp})),B=E.Z.div(d||(d=(0,_.Z)(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"])),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),U=E.Z.div(f||(f=(0,_.Z)(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"])),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function G(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,u=e.validatingButtonAriaLabel,l=e.isStepActive,s=e.isStepComplete,c=e.className,d=e.stepNumber,f=e.stepId,p=e.titleContent,m=e.goToThisStep,g=e.goToNextStep,h=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,b=e.onError,__=(0,A.useI18n)().__,_="".concat(f,l?"--visible":"--invisible"),E="".concat(f,l?"--invisible":"--visible");return(0,S.createElement)(k.Z,{errorMessage:t||__("There was an error with this step."),onError:b},(0,S.createElement)(j,{className:c},(0,S.createElement)(W,{id:f,stepNumber:d,title:p,isActive:l,isComplete:s,onEdit:v===I.PX.READY&&s&&m&&!l?m:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,S.createElement)(B,{"data-testid":_,isVisible:l,className:"checkout-steps__step-content"},h,g&&l&&(0,S.createElement)(Z.Z,{onClick:g,value:v===I.PX.VALIDATING?o||__("Please wait…"):i||__("Continue"),ariaLabel:v===I.PX.VALIDATING?u||__("Please wait…"):a||__("Continue to next step"),buttonType:"primary",disabled:v!==I.PX.READY,isBusy:v===I.PX.VALIDATING})),s&&y?(0,S.createElement)(U,{"data-testid":E,isVisible:!l,className:"checkout-steps__step-complete-content"},y):null))}G.propTypes={errorMessage:C().string,onError:C().func,editButtonAriaLabel:C().string,editButtonText:C().string,nextStepButtonText:C().string,nextStepButtonAriaLabel:C().string,isStepActive:C().bool.isRequired,isStepComplete:C().bool.isRequired,className:C().string,stepNumber:C().number,stepId:C().string.isRequired,titleContent:C().node.isRequired,goToThisStep:C().func,goToNextStep:C().func,activeStepContent:C().node,formStatus:C().string,completeStepContent:C().node,validatingButtonText:C().string,validatingButtonAriaLabel:C().string};var H=E.Z.span(p||(p=(0,_.Z)(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"])),(function(e){return e.isActive?e.theme.colors.textColorDark:e.theme.colors.textColor}),(function(e){return e.isActive?e.theme.weights.bold:e.theme.weights.normal}),(function(e){return e.fullWidth?"0":"8px"}),(function(e){return e.fullWidth?"0":"8px"})),V=E.Z.h2(m||(m=(0,_.Z)(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"])),(function(e){return e.isComplete||e.isActive?"8px":"0"})),z=(0,E.Z)(O.Z)(g||(g=(0,_.Z)(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"])));function W(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,u=e.onEdit,l=e.editButtonText,s=e.editButtonAriaLabel,__=(0,A.useI18n)().__,c=!!u;return(0,S.createElement)(V,{isComplete:a,isActive:o,className:(0,N.Z)([n,"checkout-step__header"])},(0,S.createElement)(X,{isComplete:a,isActive:o,id:t},r||null),(0,S.createElement)(H,{fullWidth:!c,isActive:o},i),c&&(0,S.createElement)(z,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:u,"aria-label":s||__("Edit this step")},l||__("Edit")))}var Y=E.Z.div(h||(h=(0,_.Z)(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]))),q=E.Z.div(v||(v=(0,_.Z)(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"])),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),K=E.Z.div(y||(y=(0,_.Z)(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"])),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(n)return r.colors.highlight;if(t)return r.colors.success;return r.colors.upcomingStepBackground}),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(t||n)return r.colors.surface;return r.colors.textColor}),(function(e){return e.isComplete?"0":"1"})),J=(0,E.Z)(K)(b||(b=(0,_.Z)(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"])),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function X(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return(0,S.createElement)(Y,{className:(0,N.Z)([r,"checkout-step__stepper"])},(0,S.createElement)(q,{isComplete:a},(0,S.createElement)(K,{isComplete:a,isActive:n},i),(0,S.createElement)(J,null,(0,S.createElement)(M.nQ,{id:o}))))}W.propTypes={id:C().string,className:C().string,stepNumber:C().number,title:C().node.isRequired,isActive:C().bool,isComplete:C().bool,editButtonText:C().string,editButtonAriaLabel:C().string,onEdit:C().func},X.propTypes={id:C().string,className:C().string,isComplete:C().bool,isActive:C().bool}},5197:function(e,t,n){"use strict";n.d(t,{nQ:function(){return c}});var r,i=n(4059),o=n(3027),a=n(2248),u=n(3980),l=n.n(u),s=(n(3804),a.Z.svg(r||(r=(0,i.Z)(["\n\tfill: #fff;\n"]))));function c(e){var t=e.className,n=e.id;return(0,o.createElement)(s,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},(0,o.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,o.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),(0,o.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},(0,o.createElement)("rect",{width:"20",height:"20"})))}c.propTypes={className:l().string,id:l().string}},6654:function(e,t,n){"use strict";function r(e){return e.filter((function(e){return e})).join(" ")}n.d(t,{Z:function(){return r}})},5777:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r={wordpressBlue5:"#BEDAE6",wordpressBlue40:"#187AA2",wordpressBlue50:"#006088",wordpressBlue60:"#004E6E",wordpressBlue80:"#002C40",blue5:"#BBE0FA",blue30:"#399CE3",blue40:"#1689DB",blue50:"#0675C4",blue60:"#055D9C",blue80:"#02395C",gray0:"#F6F7F7",gray5:"#DCDCDE",gray10:"#C3C4C7",gray20:"#A7AAAD",gray30:"#8E9196",gray50:"#646970",gray80:"#2C3338",pink50:"#C9356E",pink60:"#AB235A",pink80:"#700F3B",green50:"#008A20",red50:"#D63638",red0:"#F7EBEC",white:"#FFF",black:"#000"}},7384:function(e,t,n){"use strict";var r=n(5777),i={colors:{background:r.I.gray0,surface:r.I.white,primary:r.I.pink50,primaryBorder:r.I.pink80,primaryOver:r.I.pink60,highlight:r.I.blue50,highlightBorder:r.I.blue80,highlightOver:r.I.blue60,success:r.I.green50,discount:r.I.green50,disabledPaymentButtons:r.I.gray0,disabledPaymentButtonsAccent:r.I.gray5,disabledButtons:r.I.gray20,borderColor:r.I.gray10,borderColorLight:r.I.gray5,borderColorDark:r.I.gray50,upcomingStepBackground:r.I.gray5,textColor:r.I.gray80,textColorLight:r.I.gray50,textColorDark:r.I.black,error:r.I.red50,warningBackground:r.I.red0,outline:r.I.blue30,applePayButtonColor:r.I.black,applePayButtonRollOverColor:r.I.gray80,noticeBackground:r.I.gray80,defaultNoticeIconBackground:r.I.gray30,textColorOnDarkBackground:r.I.white,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:r.I.gray0,placeHolderTextColor:r.I.gray30},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}};t.Z=i},7450:function(e,t,n){"use strict";var r,i,o;n.d(t,{PX:function(){return r}}),function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL",e.ERROR="ERROR"}(i||(i={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(o||(o={}))},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return i},receiveDomainAvailability:function(){return o},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},i=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},o=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},a=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},u=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},584:function(e,t,n){"use strict";n.d(t,{L:function(){return i},r:function(){return r}});var r,i="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(r||(r={}))},8077:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(3661),o=n(3600),a=n(584),u=n(3717),l=n(2269),s=n(267),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.L,{actions:o,controls:i.ai,reducer:u.Z,resolvers:l,selectors:s})),a.L}},3717:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=n(584),u=n(4211),l={state:a.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},s=(0,o.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Success,data:(0,i.Z)((0,i.Z)({},e.data),{},(0,r.Z)({},(0,u.Le)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.domainName,t.availability)):e}});t.Z=s},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return g},getCategories:function(){return h},__internalGetDomainSuggestions:function(){return v}});var r=n(9394),i=n(1481),o=n(9126),a=n(6468),u=n.n(a),l=n(3661),s=n(3600),c=n(4211),d=regeneratorRuntime.mark(h),f=regeneratorRuntime.mark(v);function p(e){return"https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(e),"/is-available?is_cart_pre_check=true")}function m(e,t){return u().isFQDN(t)&&!e.some((function(e){return e.domain_name.toLowerCase()===t}))}var g=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p(t),e.prev=1,e.next=4,(0,l.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,s.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,s.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function h(){var e,t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,l.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=n.sent,t=e.body,n.abrupt("return",(0,s.receiveCategories)(t));case 5:case"end":return n.stop()}}),d)}function v(e){var t,n,a;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(e.query){u.next=2;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)("Empty query"));case 2:return u.next=4,(0,s.fetchDomainSuggestions)();case 4:return u.prev=4,u.next=7,(0,l._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});case 7:if(t=u.sent,Array.isArray(t)){u.next=10;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)((0,i.Iu)("Invalid response from the server")));case 10:return m(t,e.query)&&(n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""},t.unshift(n)),a=t.map((function(e){return e.unavailable?e:(0,r.Z)((0,r.Z)({},e),e.raw_price&&e.currency_code&&{cost:(0,c._B)(e.raw_price,e.currency_code)})})),u.abrupt("return",(0,s.receiveDomainSuggestionsSuccess)(e,a));case 15:return u.prev=15,u.t0=u.catch(4),u.abrupt("return",(0,s.receiveDomainSuggestionsError)(u.t0.message||(0,i.Iu)("Error while fetching server response")));case 18:case"end":return u.stop()}}),f,null,[[4,15]])}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return u},getDomainSuggestions:function(){return l},getDomainState:function(){return s},getDomainErrorMessage:function(){return c},isLoadingDomainSuggestions:function(){return d},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return p},getDomainAvailabilities:function(){return m}});var r=n(1766),i=n(5707),o=n(584),a=n(4211),u=function(e){return[].concat((0,r.Z)(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),(0,r.Z)(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)(o.L).__internalGetDomainSuggestions(r)},s=function(e){return e.domainSuggestions.state},c=function(e){return e.domainSuggestions.errorMessage},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[r])},f=function(e,t){return e.domainSuggestions.data[(0,a.Le)(t)]},p=function(e,t){return e.availability[t]},m=function(e){return e.availability}},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return a},_B:function(){return u},o0:function(){return l}});var r=n(9394),i=n(1621),o=n(5695),a=n.n(o)();function u(e,t){return(0,i.ZP)(e,t,{stripZeros:!0})}function l(e,t){return(0,r.Z)((0,r.Z)({include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front"},t),{},{query:e.trim().toLocaleLowerCase()})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return l},setDomain:function(){return s},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return m},unsetPlanProductId:function(){return g},updatePlan:function(){return h},openSidebar:function(){return v},closeSidebar:function(){return y},openFocusedLaunch:function(){return b},closeFocusedLaunch:function(){return _},enableAnchorFm:function(){return S},showSiteTitleStep:function(){return E},setModalDismissible:function(){return A},unsetModalDismissible:function(){return w},showModalTitle:function(){return x},hideModalTitle:function(){return P},enablePersistentSuccessView:function(){return C},disablePersistentSuccessView:function(){return N}});var r=n(5707),i=n(9149),o=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},a=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},u=function(e){return{type:"SET_STEP",step:e}},l=function(e){return{type:"SET_SITE_TITLE",title:e}},s=function(e){return{type:"SET_DOMAIN",domain:e}},c=function(){return{type:"UNSET_DOMAIN"}},d=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},f=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},p=function(e){return{type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}},m=regeneratorRuntime.mark((function e(t){var n,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,r.select)(i.Fs).isPlanProductFree(t)){e.next=6;break}return o=(0,r.select)(i.Fs).getPlanProductById(t),a=null!==(n=null==o?void 0:o.billingPeriod)&&void 0!==n?n:"ANNUALLY",e.next=6,p(a);case 6:return e.abrupt("return",{type:"SET_PLAN_PRODUCT_ID",planProductId:t});case 7:case"end":return e.stop()}}),e)})),g=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function h(e){return m(e)}var v=function(){return{type:"OPEN_SIDEBAR"}},y=function(){return{type:"CLOSE_SIDEBAR"}},b=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},_=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},S=function(){return{type:"ENABLE_ANCHOR_FM"}},E=function(){return{type:"SHOW_SITE_TITLE_STEP"}},A=function(){return{type:"SET_MODAL_DISMISSIBLE"}},w=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},x=function(){return{type:"SHOW_MODAL_TITLE"}},P=function(){return{type:"HIDE_MODAL_TITLE"}},C=function(){return{type:"ENABLE_SUCCESS_VIEW"}},N=function(){return{type:"DISABLE_SUCCESS_VIEW"}}},9149:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Fs:function(){return i}});var r="automattic/launch",i="automattic/onboard/plans"},3610:function(e,t,n){"use strict";n.d(t,{y:function(){return r},M:function(){return i}});var r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},i=[r.Name,r.Domain,r.Plan,r.Final]},1635:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(5707),i=n(9866),o=n(6108),a=n(9149),u=n(594),l=n(4648),s=n(7092);(0,r.use)(r.plugins.persistence,u.Z);var c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{actions:o,controls:i.controls,reducer:l.Z,selectors:s,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(5707),i=n(3610),o=(0,r.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.y.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planBillingPeriod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ANNUALLY",t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isAnchorFm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_ANCHOR_FM"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e}});t.Z=o},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return l},hasPaidDomain:function(){return s},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return v},getFirstIncompleteStep:function(){return y},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var r=n(5707),i=n(9149),o=n(3610),a=function(){return o.M},u=function(){return o.y},l=function(e){return e},s=function(e){return!!e.domain&&!e.domain.is_free},c=function(e){return e.domain},d=function(e){return e.planProductId},f=function(e){return e.planBillingPeriod},p=function(e){return void 0!==e.planProductId&&!(0,r.select)(i.Fs).isPlanProductFree(e.planProductId)},m=function(e){return!!c(e)||e.confirmedDomainSelection},g=function(e,t){if(t===o.y.Plan)return!!d(e);if(t===o.y.Name){var n=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===o.y.Domain&&(0,r.select)(i.Ls).hasSelectedDomainOrSubdomain()},h=function(e){return o.M.slice(0,o.M.length-1).every((function(t){return g(e,t)}))},v=function(e){return o.M.some((function(t){return g(e,t)}))},y=function(e){return o.M.find((function(t){return!g(e,t)}))},b=function(e){return null==e?void 0:e.siteTitle},_=function(e){return e.step},S=function(e){return e.domainSearch}},492:function(e,t,n){"use strict";function r(e){var t=e,n=e+"_TS",r={},i={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[e]}},o=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:i;return{storageKey:t,storage:{getItem:function(e){var r=o.getItem(n);return r&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(r)&&!new URLSearchParams(window.location.search).has("fresh")?o.getItem(e):(o.removeItem(t),o.removeItem(n),null)},setItem:function(e,t){o.setItem(n,JSON.stringify(Date.now())),o.setItem(e,t)}}}}n.d(t,{Z:function(){return r}})},9068:function(e,t,n){"use strict";n.r(t),n.d(t,{setFeatures:function(){return r},setFeaturesByType:function(){return i},setPlans:function(){return o},setPlanProducts:function(){return a},resetPlan:function(){return u}});var r=function(e,t){return{type:"SET_FEATURES",features:e,locale:t}},i=function(e,t){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}},o=function(e,t){return{type:"SET_PLANS",plans:e,locale:t}},a=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},u=function(){return{type:"RESET_PLAN"}}},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return i},TO:function(){return o},YS:function(){return a},Gz:function(){return u},hx:function(){return l},iL:function(){return s},xT:function(){return c},AX:function(){return d},bS:function(){return f},UB:function(){return p},BV:function(){return m},nN:function(){return g}});var r="automattic/onboard/plans",i=1,o="free",a="personal",u="premium",l="business",s="ecommerce",c=[o,a,u,l,s],d=u,f=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],p=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],m=["free_plan"].concat(f,p),g=["custom-domain","support-live","priority-support"]},9734:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(3661),o=n(9068),a=n(4703),u=n(9438),l=n(5261),s=n(7738),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{resolvers:l,actions:o,controls:i.ai,reducer:u.ZP,selectors:s})),a.Ls}},9438:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=(0,o.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.features));default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.featuresByType));default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.plans));default:return e}}});t.ZP=a},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return g}});var r=n(1621),i=n(9126),o=n(3661),a=n(9068),u=n(4703),l=regeneratorRuntime.mark(g);function s(e){return(0,r.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function c(e){return(0,r.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function d(e){return e.reduce((function(e,t){return e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:u.nN.indexOf(t.id)>-1},e}),{})}function f(e,t){var n=Object.keys(t).find((function(n){return t[n].name===e}));return!!n&&t[n].requiresAnnuallyBilledPlan}function p(e,t){var n=e.highlighted_features.map((function(e){return{name:e,requiresAnnuallyBilledPlan:f(e,t)}}));return n.sort((function(e,t){return Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan)})),n}function m(e,t){var n=u.BV.reduce((function(n,i){var o=e.find((function(e){return e.product_slug===i}));if(!o)return n;var a,u=t.find((function(e){return e.productIds.indexOf(o.product_id)>-1}));return n.push({productId:o.product_id,billingPeriod:31===o.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:u.periodAgnosticSlug,storeSlug:o.product_slug,rawPrice:o.raw_price,pathSlug:o.path_slug,price:31===(null==o?void 0:o.bill_period)||0===o.raw_price?c(o):(a=o,(0,r.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?s(o):c(o)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===u.bS[t]})),r=e.find((function(e){return e.storeSlug===u.UB[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,a=Math.round(100*(1-o/i));n.annualDiscount=a,r.annualDiscount=a}},n=0;n<u.bS.length;n++)t(n)}(n),n}function g(){var e,t,n,r,s,c,f,g=arguments;return regeneratorRuntime.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return e=g.length>0&&void 0!==g[0]?g[0]:"en",l.next=3,(0,o._9)({path:"/plans",query:(0,i.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=l.sent,l.next=6,(0,o.An)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=l.sent,r=n.body,s=d(r.features),c=r.plans.map((function(e){var t,n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:p(e,s),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:n===u.TO,isPopular:n===u.Gz,periodAgnosticSlug:n,productIds:e.products.map((function(e){return e.plan_id}))}})),f=m(t,c),l.next=13,(0,a.setPlans)(c,e);case 13:return l.next=15,(0,a.setPlanProducts)(f);case 15:return l.next=17,(0,a.setFeatures)(s,e);case 17:return l.next=19,(0,a.setFeaturesByType)(r.features_by_type,e);case 19:case"end":return l.stop()}}),l)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return l},getPlanByProductId:function(){return s},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return g},getPrices:function(){return h},getPlanByPath:function(){return v},getPlanProduct:function(){return y},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var r=n(5707),i=n(3613),o=n.n(i),a=n(4703),u=function(e,t){var n;return null!==(n=e.features[t])&&void 0!==n?n:{}},l=function(e,t){var n;return null!==(n=e.featuresByType[t])&&void 0!==n?n:[]},s=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},c=function(e,t){if(t)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},f=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.AX}))},p=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.TO}))},m=function(e,t){var n;return null!==(n=e.plans[t])&&void 0!==n?n:[]},g=function(e){return e.planProducts},h=function(e,t){return o()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var i=(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(i)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===i.periodAgnosticSlug}))}},y=function(e,t,n){if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){var r=e.periodAgnosticSlug===t,i=t===a.TO||e.billingPeriod===n;return r&&i}))},b=function(e,t){return t===a.iL},_=function(e,t){return t===a.TO},S=function(e,t){return t===a.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return l}});var r=n(9394),i=n(4530),o=n(3661),a=n(9639),u=["authToken"];function l(e){var t=regeneratorRuntime.mark(m),n=regeneratorRuntime.mark(b),l=regeneratorRuntime.mark(_),s=regeneratorRuntime.mark(S),c=regeneratorRuntime.mark(E),d=function(){return{type:"FETCH_NEW_SITE"}},f=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},p=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function m(n){var a,l,s,c,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,a=n.authToken,l=(0,i.Z)(n,u),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},c=(0,r.Z)((0,r.Z)((0,r.Z)({},s),l),{},{validate:!1}),t.next=8,(0,o._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:c,token:a});case 8:return d=t.sent,t.next=11,f(d);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,p(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var g=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},h=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},v=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},y=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function b(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h(e);case 2:return t.prev=2,t.next=5,(0,o._9)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,v(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,y(e,a.Hc.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function _(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),l)}function S(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),s)}function E(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,o._9)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,g(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),c,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:E,receiveSiteTitle:g,fetchNewSite:d,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:f,receiveNewSiteFailed:p,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:m,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:b,launchSiteStart:h,launchSiteSuccess:v,launchSiteFailure:y,getCart:_,setCart:S}}},2005:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/site"},2369:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(3661),o=n(8459),a=n(2005),u=n(2701),l=n(7862),s=n(4309),c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(a.L,{actions:(0,o.d)(e),controls:i.ai,reducer:u.ZP,resolvers:l,selectors:s})),a.L}},2701:function(e,t,n){"use strict";var r=n(4530),i=n(60),o=n(1119),a=n(9394),u=n(5707),l=n(9639),s=(0,u.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),c=(0,u.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:s,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,u=(e[n],(0,r.Z)(e,[n].map(i.Z)));return(0,a.Z)({},u)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,(0,a.Z)((0,a.Z)({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:l.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:l.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:l.uS.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.domains)):e}});t.ZP=c},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return l},getSiteDomains:function(){return s}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(l),u=regeneratorRuntime.mark(s);function l(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,r.dispatch)(o.L).fetchSite();case 2:return n.prev=2,n.next=5,(0,i._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,r.dispatch)(o.L).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,r.dispatch)(o.L).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),a,null,[[2,10]])}function s(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,i._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,r.dispatch)(o.L).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),u,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return l},isFetchingSite:function(){return s},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return g},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return v},getSiteSubdomain:function(){return y}});var r=n(5707),i=n(2005),o=n(9639),a=function(e){return e},u=function(e){return e.newSite.data},l=function(e){return e.newSite.error},s=function(e){return e.newSite.isFetching},c=function(e){return e.isFetchingSiteDetails},d=function(e){return!!e.newSite.data},f=function(e,t){return e.sites[t]},p=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSite(t))||void 0===n?void 0:n.name},m=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.SUCCESS},g=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.IN_PROGRESS},h=function(e,t){return e.sitesDomains[t]},v=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},y=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))}},9639:function(e,t,n){"use strict";var r,i,o;n.d(t,{Hc:function(){return i},uS:function(){return o}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(i||(i={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(o||(o={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,u={domain:{id:"domain",minSupportedPlan:i},store:{id:"store",minSupportedPlan:r.iL},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:i},"image-storage":{id:"image-storage",minSupportedPlan:o},"video-storage":{id:"video-storage",minSupportedPlan:o},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(5707),i=n(9866),o=n(4366),a=n(8638),u=n(335),l=!1;function s(){return l||(l=!0,(0,r.registerStore)(o.L,{controls:i.controls,reducer:a.Z,selectors:u})),o.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.$;return e}},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return i},getRecommendedPlanSlug:function(){return o}});var r=n(4703),i=function(e){return e},o=function(e,t){var n=i(e);if(t.length)return t.reduce((function(e,t){var i=n[t].minSupportedPlan;return r.xT.indexOf(i)>r.xT.indexOf(e)?i:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return a},An:function(){return u},ai:function(){return l}});var r,i=n(6470),o=n(8552),a=function(e){return{type:"WPCOM_REQUEST",request:e}},u=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},l={WPCOM_REQUEST:function(e){var t=e.request;return(0,o.ZP)(t)},FETCH_AND_PARSE:(r=(0,i.Z)(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return r.apply(this,arguments)}),RELOAD_PROXY:function(){(0,o.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,o.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},7003:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(7997),a=n(5707),u=n(5869),l=n(3383),s=n(8675),c=n(2779),d=n.n(c),f=(n(3804),n(3300));n(5918);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,s.useI18n)().__,c=(0,i.useState)(!1),p=(0,r.Z)(c,2),m=p[0],g=p[1],h=function(e){g(!1),t(e)},v=(0,a.useSelect)((function(e){return e(f.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,i.createElement)("div",{className:d()("domain-categories",{"is-open":m})},(0,i.createElement)(o.Button,{className:"domain-categories__dropdown-button",onClick:function(){return g(!m)}},(0,i.createElement)("span",null,null!=n?n:y),(0,i.createElement)(u.Z,{icon:l.Z,size:16})),(0,i.createElement)("ul",{className:"domain-categories__item-group"},(0,i.createElement)("li",{className:d()("domain-categories__item",{"is-selected":!n})},(0,i.createElement)(o.Button,{onClick:function(){return h()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,i.createElement)("li",{key:t,className:d()("domain-categories__item",{"is-selected":t===n})},(0,i.createElement)(o.Button,{onClick:function(){return h(t)}},r))}))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=n(8675),o=(n(3804),function(){var e=(0,i.useI18n)(),__=e.__,t=e.isRTL;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},(0,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))})},1614:function(e,t,n){"use strict";var r=n(3027),i=n(2779),o=n.n(i);n(3804);t.Z=function(e){var t=e.type;return(0,r.createElement)("div",{className:o()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))}},7226:function(e,t,n){"use strict";var r=n(7560),i=n(4530),o=n(3027),a=n(3804),u=n(6461),l=["type","disabled"],s=a.forwardRef((function(e,t){var n=e.type,a=e.disabled,s=(0,i.Z)(e,l);return n===u.ln?(0,o.createElement)("div",s):(0,o.createElement)("button",(0,r.Z)({ref:t,disabled:a},s))}));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return b}});var r=n(7560),i=n(3258),o=n(3027),a=n(6115),u=n(849),l=n(7498),s=n(7997),c=n(1417),d=n(3163),f=n(8675),p=n(2779),m=n.n(p),g=n(3804),h=n(413),v=n(7226),y="radio",b="button",_="individual-item",S=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,p=e.cost,S=e.railcarId,E=e.hstsRequired,A=void 0!==E&&E,w=e.isFree,x=void 0!==w&&w,P=e.isExistingSubdomain,C=void 0!==P&&P,N=e.isRecommended,I=void 0!==N&&N,O=e.onSelect,k=e.onRender,Z=e.selected,M=e.type,L=void 0===M?y:M,F=e.buttonRef,T=(0,f.useI18n)(),__=T.__,R=T.hasTranslation,D=(0,u.bU)(),$=(0,l.Iu)(),j=!(0,c.useViewportMatch)("small",">="),B=n.indexOf("."),U=n.slice(0,B),G=n.slice(B),H=g.useState(),V=(0,i.Z)(H,2),z=V[0],W=V[1],Y=g.useState(),q=(0,i.Z)(Y,2),K=q[0],J=q[1],X=__("Default","full-site-editing"),Q=__("Free","full-site-editing"),ee=L===_?X:Q,te=__("Included with annual plans","full-site-editing"),ne=__("Included in annual plans","full-site-editing"),re="en"===D||null!=R&&R("Included in annual plans")?ne:te,ie=__("<strong>First year included</strong> in paid plans","full-site-editing"),oe=__("<strong>First year included</strong> in annual plans","full-site-editing"),ae="en"===D||null!=R&&R("<strong>First year included</strong> in annual plans")?oe:ie,ue=j?re:(0,o.createInterpolateElement)(ae,{strong:(0,o.createElement)("strong",null)});g.useEffect((function(){n!==z&&K!==S&&S&&(k(),W(n),J(S))}),[n,z,K,S,k]);var le=function(){K&&(0,a.Lo)({action:"domain_selected",railcarId:K}),O(n)},se=__("Selected","full-site-editing"),ce=__("Select","full-site-editing");return(0,o.createElement)(v.Z,{ref:F,type:L,key:U,className:m()("domain-picker__suggestion-item",{"is-free":x,"is-selected":Z,"is-unavailable":t},"type-".concat(L)),onClick:L!==b?le:void 0,disabled:t},L===y&&(r?(0,o.createElement)(s.Spinner,null):(0,o.createElement)("span",{className:m()("domain-picker__suggestion-radio-circle",{"is-checked":Z,"is-unavailable":t})})),(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,o.createElement)("span",{className:m()("domain-picker__domain-wrapper",{"with-margin":!A})},(0,o.createElement)("span",{className:"domain-picker__domain-sub-domain"},U),(0,o.createElement)("span",{className:"domain-picker__domain-tld"},G)),I&&!t&&(0,o.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),A&&(0,o.createElement)(h.Z,{position:j?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,o.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,o.createElement)("b",null,G),learn_more_link:(0,o.createElement)("a",{target:"_blank",rel:"noreferrer",href:$("https://wordpress.com/support/https-ssl")})}))),C&&L!==_&&(0,o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,o.createElement)("div",{className:m()("domain-picker__price",{"is-paid":!x})},t&&__("Unavailable","full-site-editing"),x&&!t&&ee,!x&&!t&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"domain-picker__price-cost"},(0,d.sprintf)(__("%s/year","full-site-editing"),p)),(0,o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",ue," "),(0,o.createElement)("span",{className:"domain-picker__price-renewal"},(0,d.sprintf)(__("Renews at: %s /year","full-site-editing"),p)))),L===b&&(r?(0,o.createElement)(s.Spinner,null):(0,o.createElement)("div",{className:"domain-picker__action"},(0,o.createElement)(s.Button,{ref:F,isSecondary:!0,className:m()("domain-picker__suggestion-select-button",{"is-selected":Z&&!t}),disabled:t,onClick:le},Z&&!t?se:ce))))};t.ZP=g.forwardRef((function(e,t){return(0,o.createElement)(S,(0,r.Z)({},e,{buttonRef:t}))}))},605:function(e,t,n){"use strict";var r=n(3027),i=n(9211),o=n(8675),a=(n(3804),n(7226));t.Z=function(e){var t=e.onClick,n=(0,o.useI18n)(),__=n.__,_x=n._x;return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:t},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(i.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(6115),a=n(584),u=n(7997),l=n(5869),s=n(7108),c=n(8675),d=n(1205),f=n(3804),p=n.n(f),m=n(3300),g=n(5241),h=n(1045),v=n(1071),y=n(3446),b=n(7003),_=n(6325),S=n(6461),E=n(1614),A=n(605),w=(n(5592),function(e){var t=e.groupItems,n=e.children;return t?(0,i.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,i.createElement)(f.Fragment,null,n)}),x=function(e){var t=e.children;return(0,i.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,P=e.showDomainCategories,C=e.onDomainSelect,N=e.onExistingSubdomainSelect,I=e.quantity,O=void 0===I?m.SL:I,k=e.quantityExpanded,Z=void 0===k?m.Mm:k,M=e.onDomainSearchBlur,L=e.analyticsFlowId,F=e.analyticsUiAlgo,T=e.initialDomainSearch,R=void 0===T?"":T,D=e.onSetDomainSearch,$=e.currentDomain,j=e.isCheckingDomainAvailability,B=e.existingSubdomain,U=e.segregateFreeAndPaid,G=void 0!==U&&U,H=e.showSearchField,V=void 0===H||H,z=e.itemType,W=void 0===z?S.fe:z,Y=e.locale,q=e.areDependenciesLoading,K=void 0!==q&&q,J=e.orderSubDomainsLast,X=void 0!==J&&J,Q=e.onUseYourDomainClick,ee=e.vendor,te=void 0===ee?(0,y.iY)():ee,ne=e.showRecommendationLabel,re=void 0===ne||ne,__=(0,c.useI18n)().__,ie=__("Search for a domain","full-site-editing"),oe=(0,f.useState)(!1),ae=(0,r.Z)(oe,2),ue=ae[0],le=ae[1],se=(0,f.useState)(R),ce=(0,r.Z)(se,2),de=ce[0],fe=ce[1],pe=(0,f.useState)(),me=(0,r.Z)(pe,2),ge=me[0],he=me[1],ve=(0,g.O)(de.trim(),Z,ge,Y)||{},ye=ve.allDomainSuggestions,be=ve.errorMessage,_e=ve.state,Se=ve.retryRequest,Ee=null==ye?void 0:ye.filter((function(e){return!(B&&e.is_free)})).slice(0,ue?Z-1:O-1),Ae=null==Ee?void 0:Ee.findIndex((function(e){return!e.is_free&&!e.unavailable})),we=(0,h.$)(Ee,B,$);we&&(null==Ee||Ee.push(we));var xe=(0,v.P)();(0,f.useEffect)((function(){le(!1)}),[de]);var Pe=(0,f.useState)(),Ce=(0,r.Z)(Pe,2),Ne=Ce[0],Ie=Ce[1];(0,f.useEffect)((function(){ye&&Ie((0,o.k9)("suggestion"))}),[ye,Ie]),(0,f.useEffect)((function(){V||fe(R)}),[R,V]);var Oe=p().useRef([]);(0,f.useEffect)((function(){var e,t;ue&&(null===(e=Oe.current[O])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[ue,O]);var ke=function(e,t,n,r){var i="/domains/search/".concat(te,"/").concat(L).concat(ge?"/"+ge:"");(0,o.Sn)({uiAlgo:"/".concat(L,"/").concat(F),fetchAlgo:i,query:de,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Ze=p().useRef(),Me=_e===a.r.Failure,Le=(null===(t=de.trim)||void 0===t?void 0:t.call(de).length)<=1,Fe=!Me&&!Le,Te=!Me&&Le,Re=O;we&&(Re+=1),Q&&(Re+=1),B&&(Re-=1);var De=["professional"];return B&&De.unshift("sub-domain"),X&&De.reverse(),(0,i.createElement)("div",{className:"domain-picker"},n&&n,V&&(0,i.createElement)("div",{className:"domain-picker__search"},(0,i.createElement)("form",{action:"",onSubmit:function(e){var t;e.preventDefault(),null==Ze||null===(t=Ze.current)||void 0===t||t.blur()}},(0,i.createElement)("div",{className:"domain-picker__search-icon"},(0,i.createElement)(l.Z,{icon:s.Z})),(0,i.createElement)(u.TextControl,{ref:function(e){Ze.current=e},hideLabelFromVision:!0,name:"search",label:ie,placeholder:ie,onChange:function(e){fe(e),D&&D(e)},onBlur:function(e){M&&M(e.currentTarget.value)},value:de,dir:"ltr"}))),Me&&(0,i.createElement)(u.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,i.createElement)("p",{className:"domain-picker__error-message"},be||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,i.createElement)(u.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:Se},__("Retry","full-site-editing"))),(Fe||K)&&(0,i.createElement)("div",{className:"domain-picker__body"},P&&(0,i.createElement)("div",{className:"domain-picker__aside"},(0,i.createElement)(b.Z,{selected:ge,onSelect:he})),(0,i.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,i.createElement)("div",{className:"domain-picker__sugggested-items-container"},De.map((function(e){return"sub-domain"===e?(0,i.createElement)(f.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Keep sub-domain","full-site-editing")),(0,i.createElement)(w,{key:e,groupItems:G},!K&&B&&(0,i.createElement)(S.ZP,{key:null==B?void 0:B.domain_name,domain:null==B?void 0:B.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Ne?"".concat(Ne,0):void 0,onRender:function(){return ke(null==B?void 0:B.domain_name,"".concat(Ne,0),0,!1)},selected:(null==$?void 0:$.domain_name)===(null==B?void 0:B.domain_name),onSelect:function(){null==N||N(null==B?void 0:B.domain_name)},type:W})||(0,i.createElement)(E.Z,{type:W}))):(0,i.createElement)(f.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Professional domains","full-site-editing")),(0,i.createElement)(w,{key:e,groupItems:G},!K&&(null==Ee?void 0:Ee.map((function(e,t){var n,r=null!=B&&B.domain_name?t+1:t,o=t===Ae,a=null===(n=xe[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,u=!a||(null===m.vn||void 0===m.vn?void 0:m.vn.indexOf(a))>-1;return(0,i.createElement)(S.ZP,{ref:function(e){Oe.current[r]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!u||(null==e?void 0:e.unavailable),isLoading:(null==$?void 0:$.domain_name)===e.domain_name&&j,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:re&&o,railcarId:Ne?"".concat(Ne).concat(r):void 0,onRender:function(){return ke(e.domain_name,"".concat(Ne).concat(r),r,o)},onSelect:function(){C(e)},selected:(null==$?void 0:$.domain_name)===e.domain_name,type:W})})))||(0,d.times)(Re,(function(e){return(0,i.createElement)(E.Z,{type:W,key:e})})),Q&&!!Ee&&(0,i.createElement)(A.Z,{onClick:Q})))}))),!ue&&O<Z&&(null==ye?void 0:ye.length)&&(null==ye?void 0:ye.length)>O&&(0,i.createElement)("div",{className:"domain-picker__show-more"},(0,i.createElement)(u.Button,{onClick:function(){return le(!0)},isLink:!0},__("View more results","full-site-editing"))))),Te&&!K&&(0,i.createElement)("div",{className:"domain-picker__empty-state"},(0,i.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,i.createElement)("div",null,(0,i.createElement)(_.q,null))))}},413:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(7997),a=n(5614),u=n(2779),l=n.n(u),s=n(3804);n(125);t.Z=function(e){var t=e.children,n=e.className,u=e.id,c=e.position,d=void 0===c?"bottom center":c,f=e.noArrow,p=void 0===f||f,m=(0,s.useState)(!1),g=(0,r.Z)(m,2),h=g[0],v=g[1];return(0,i.createElement)((function(e){return(0,i.createElement)(o.Button,e)}),{icon:a.Z,onClick:function(e){v(!h),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},h&&(0,i.createElement)(o.Popover,{id:u,className:l()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:p},t))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return i},Mm:function(){return o},F9:function(){return a},dP:function(){return u},GN:function(){return l},vn:function(){return s}});var r=n(8077),i=5,o=10,a=2,u=300,l=r.z2(),s=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(5707),i=n(3300);function o(){return(0,r.useSelect)((function(e){return e(i.GN).getDomainAvailabilities()}),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var r=n(9394),i=n(3258),o=n(5707),a=n(7127),u=n(3300);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=(0,a.Z)(e,u.dP),d=(0,i.Z)(c,1),f=d[0],p=(0,o.useDispatch)(u.GN),m=p.invalidateResolutionForStoreSelector;return(0,o.useSelect)((function(e){if(f&&!(f.length<u.F9)){var i=e(u.GN),o=i.getDomainSuggestions,a=i.getDomainState,c=i.getDomainErrorMessage;return{allDomainSuggestions:o(f,(0,r.Z)({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:l,category_slug:n},s)),state:a(),errorMessage:c(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[f,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(1766),i=n(3258),o=n(3804);function a(e,t,n){var a=o.useState(),u=(0,i.Z)(a,2),l=u[0],s=u[1],c=t&&Array.isArray(e)?[t].concat((0,r.Z)(e)):e;if(o.useEffect((function(){var e=null==c?void 0:c.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=c&&c.length&&!e&&s(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==l?void 0:l.domain_name)}))))return l}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return i},iY:function(){return o}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return a}});var r=n(9394),i=n(1481),o=n(3759);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(0,o.X)(t);if(!a||isNaN(e))return null;var l=(0,r.Z)((0,r.Z)({},a),n),s=l.decimal,c=l.grouping,d=l.precision,f=l.symbol,p=e<0?"-":"",m=(0,i.Y4)(Math.abs(e),{decimals:d,thousandsSep:c,decPoint:s});return n.stripZeros&&(m=u(m,s)),"".concat(p).concat(f).concat(m)}function u(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(1766),i=n(1119),o=n(2699),a=n(6668),u=n(8049),l=n.n(u),s=n(5079),c=n.n(s),d=n(7010),f=n(7839),p=n.n(f),m=n(9830),g=n(3),h=l()("i18n-calypso"),v="number_format_decimals",y="number_format_thousands_sep",b="messages",_=[function(e){return e}],S={};function E(){C.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function A(e){return Array.prototype.slice.call(e)}function w(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&E("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",A(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&E("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",A(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function x(e,t){return e.dcnpgettext(b,t.context,t.original,t.plural,t.count)}function P(e,t){for(var n=_.length-1;n>=0;n--){var r=_[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return x(e.state.tannin,r)}return null}function C(){if(!(this instanceof C))return new C;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:p()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new o.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}C.throwErrors=!1,C.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},C.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},C.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},C.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,g.Z)(e,n,r,i)},C.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},C.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],a=function(e,t){var n=!1===t?"":String(t);if(void 0!==S[n+e])return S[n+e];var r=c()().update(e).digest("hex");return S[n+e]=t?r.substr(0,t):r},u=function(e){return function(t){return t.context?(t.original=a(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=a(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)_.push(u(!1));else{var l=o.substr(5).indexOf("-");if(l<0){var s=Number(o.substr(5));_.push(u(s))}else for(var d=Number(o.substr(5,l)),f=Number(o.substr(6+l)),p=d;p<=f;p++)_.push(u(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new m.Z((0,i.Z)({},b,this.state.locale)),this.state.numberFormatSettings.decimal_point=x(this.state.tannin,w([v])),this.state.numberFormatSettings.thousands_sep=x(this.state.tannin,w([y])),this.state.numberFormatSettings.decimal_point===v&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===y&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},C.prototype.getLocale=function(){return this.state.locale},C.prototype.getLocaleSlug=function(){return this.state.localeSlug},C.prototype.getLocaleVariant=function(){return this.state.localeVariant},C.prototype.isRtl=function(){return"rtl"===this.state.textDirection},C.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},C.prototype.hasTranslation=function(){return!!P(this,w(arguments))},C.prototype.translate=function(){var e=w(arguments),t=P(this,e);if(t||(t=x(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=a.Z.apply(void 0,(0,r.Z)(n))}catch(o){if(!window||!window.console)return;var i=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[i](o):window.console[i]("i18n sprintf error:",n)}}return e.components&&(t=(0,d.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},C.prototype.reRenderTranslations=function(){h("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},C.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},C.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=C},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return l},Iu:function(){return s}});var r=n(914),i=n(3493),o=n(8373),a=n(975),u=new r.Z,l=u.numberFormat.bind(u),s=u.translate.bind(u),c=(u.configure.bind(u),u.setLocale.bind(u),u.getLocale.bind(u),u.getLocaleSlug.bind(u),u.getLocaleVariant.bind(u),u.isRtl.bind(u),u.addTranslations.bind(u),u.reRenderTranslations.bind(u),u.registerComponentUpdateHook.bind(u),u.registerTranslateHook.bind(u),u.state,u.stateObserver,u.on.bind(u),u.off.bind(u),u.emit.bind(u),(0,i.Z)(u),(0,a.Z)(u),(0,o.Z)(u));c.useRtl,c.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(9394),i=n(4659),o=n(4730),a=n(3989),u=n(5663),l=n(9049),s=n(1119),c=n(3027),d=n(3804),f=n.n(d);function p(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var d,p,m=n.displayName||n.name||"";return p=d=function(d){(0,u.Z)(p,d);var f=(0,l.Z)(p);function p(){var e;(0,i.Z)(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=f.call.apply(f,[this].concat(n)),(0,s.Z)((0,a.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,a.Z)(e))),e}return(0,o.Z)(p,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var i=(0,r.Z)((0,r.Z)({locale:e.getLocaleSlug()},this.props),t);return(0,c.createElement)(n,i)}}]),p}(f().Component),(0,s.Z)(d,"displayName","Localized("+m+")"),p}}},3:function(e,t,n){"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,u=void 0===n?".":n,l="";return(l=(o?
12
  /*
13
  * Exposes number format capability
14
  *
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.14479
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.14479' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 3.14545
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.14545' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
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.14479
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.14545
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' => '64feb52637fcfac36b9f64e25eae5e8a');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '4caba7335562eb163df5a3f125cbc2ee');
tags-education/dist/tags-education.js CHANGED
@@ -1 +1 @@
1
- !function(){var t={270:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.default=t.exports,t.exports.__esModule=!0},232:function(t,e,n){var r=n(270);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.default=t.exports,t.exports.__esModule=!0},357:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{Z:function(){return r}})},507:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,{Z:function(){return r}})},119:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return r}})},560:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,{Z:function(){return r}})},483:function(t,e,n){"use strict";function r(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],_n=!0,s=!1;try{for(n=n.call(t);!(_n=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);_n=!0);}catch(u){s=!0,o=u}finally{try{_n||null==n.return||n.return()}finally{if(s)throw o}}return i}}n.d(e,{Z:function(){return r}})},7:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:function(){return r}})},394:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(119);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},258:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(507),o=n(483),i=n(237),s=n(7);function u(t,e){return(0,r.Z)(t)||(0,o.Z)(t,e)||(0,i.Z)(t,e)||(0,s.Z)()}},237:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(357);function o(t,e){if(t){if("string"==typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}},557:function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},359:function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},182:function(t,e,n){var r=n(232),o=n(557),i=n(487),s=n(359);t.exports=function(t){return r(t)||o(t)||i(t)||s()},t.exports.default=t.exports,t.exports.__esModule=!0},487:function(t,e,n){var r=n(270);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},421:function(t,e){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(t,e){try{return e(t)}catch(n){return t}}},699:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(n,r){function o(){void 0!==i&&t.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==e&&(i=function(n){t.removeListener(e,o),r(n)},t.once("error",i)),t.once(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function a(t,e,n,r){var o,i,s,a;if(u(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),s=i[e]),void 0===s)s=i[e]=n,++t._eventsCount;else if("function"==typeof s?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=c(t))>0&&s.length>o&&!s.warned){s.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=s.length,a=f,console&&console.warn&&console.warn(a)}return t}function f(){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 l(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function h(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):d(o,o.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),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(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var c=i[t];if(void 0===c)return!1;if("function"==typeof c)r(c,this,e);else{var a=c.length,f=d(c,a);for(n=0;n<a;++n)r(f[n],this,e)}return!0},i.prototype.addListener=function(t,e){return a(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return a(this,t,e,!0)},i.prototype.once=function(t,e){return u(e),this.on(t,l(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,l(this,t,e)),this},i.prototype.removeListener=function(t,e){var n,r,o,i,s;if(u(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,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[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),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(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},i.prototype.listeners=function(t){return h(this,t,!0)},i.prototype.rawListeners=function(t){return h(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},495:function(t,e,n){"use strict";var r=n(212),o=n(561);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}e.BlockHash=i,i.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(t<<=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++]=t>>>24&255,r[o++]=t>>>16&255,r[o++]=t>>>8&255,r[o++]=255&t}else for(r[o++]=255&t,r[o++]=t>>>8&255,r[o++]=t>>>16&255,r[o++]=t>>>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}},32:function(t,e,n){"use strict";var r=n(212),o=n(495),i=n(713),s=n(561),u=r.sum32,c=r.sum32_4,a=r.sum32_5,f=i.ch32,l=i.maj32,h=i.s0_256,p=i.s1_256,d=i.g0_256,v=i.g1_256,g=o.BlockHash,m=[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 y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,g),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=c(v(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],w=this.h[5],b=this.h[6],C=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var _=a(C,p(y),f(y,w,b),this.k[r],n[r]),x=u(h(o),l(o,i,g));C=b,b=w,w=y,y=u(m,_),m=g,g=i,i=o,o=u(_,x)}this.h[0]=u(this.h[0],o),this.h[1]=u(this.h[1],i),this.h[2]=u(this.h[2],g),this.h[3]=u(this.h[3],m),this.h[4]=u(this.h[4],y),this.h[5]=u(this.h[5],w),this.h[6]=u(this.h[6],b),this.h[7]=u(this.h[7],C)},y.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(t,e,n){"use strict";var r=n(212).rotr32;function o(t,e,n){return t&e^~t&n}function i(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?o(e,n,r):1===t||3===t?s(e,n,r):2===t?i(e,n,r):void 0},e.ch32=o,e.maj32=i,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},212:function(t,e,n){"use strict";var r=n(561),o=n(285);function i(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function u(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)n.push(parseInt(t[o]+t[o+1],16))}else for(var r=0,o=0;o<t.length;o++){var s=t.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(t,o)?(s=65536+((1023&s)<<10)+(1023&t.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<t.length;o++)n[o]=0|t[o];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=u(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var o=t[r];"little"===e&&(o=s(o)),n+=c(o.toString(16))}return n},e.zero2=u,e.zero8=c,e.join32=function(t,e,n,o){var i=n-e;r(i%4==0);for(var s=new Array(i/4),u=0,c=e;u<s.length;u++,c+=4){var a;a="big"===o?t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c],s[u]=a>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,o=0;r<t.length;r++,o+=4){var i=t[r];"big"===e?(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},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,o){return t+e+n+r+o>>>0},e.sum64=function(t,e,n,r){var o=t[e],i=r+t[e+1]>>>0,s=(i<r?1:0)+n+o;t[e]=s>>>0,t[e+1]=i},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,o,i,s,u){var c=0,a=e;return c+=(a=a+r>>>0)<e?1:0,c+=(a=a+i>>>0)<i?1:0,t+n+o+s+(c+=(a=a+u>>>0)<u?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,o,i,s,u){return e+r+i+u>>>0},e.sum64_5_hi=function(t,e,n,r,o,i,s,u,c,a){var f=0,l=e;return f+=(l=l+r>>>0)<e?1:0,f+=(l=l+i>>>0)<i?1:0,f+=(l=l+u>>>0)<u?1:0,t+n+o+s+c+(f+=(l=l+a>>>0)<a?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,o,i,s,u,c,a){return e+r+i+u+a>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},561:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},378:function(t){var e=1e3,n=60*e,r=60*n,o=24*r,i=7*o,s=365.25*o;function u(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,c){c=c||{};var a=typeof t;if("string"===a&&t.length>0)return function(t){if((t=String(t)).length>100)return;var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!u)return;var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===a&&isFinite(t))return c.long?function(t){var i=Math.abs(t);if(i>=o)return u(t,i,o,"day");if(i>=r)return u(t,i,r,"hour");if(i>=n)return u(t,i,n,"minute");if(i>=e)return u(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=r)return Math.round(t/r)+"h";if(i>=n)return Math.round(t/n)+"m";if(i>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},641:function(t,e,n){"use strict";var r=n(27),o=n(115),i=n(498),s=n(997),u=n(417),c=n(799),a=n(163),__=a.__,f=function(){return(0,o.jN)("wpcom_block_editor_tags_education_link_click")},l=(0,u.createHigherOrderComponent)((function(t){return function(e){var n=(0,i.Iu)();return"post_tag"!==e.slug?(0,r.createElement)(t,e):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(t,e),(0,r.createElement)(s.ExternalLink,{href:n("https://wordpress.com/blog/2014/04/21/better-tagging/",window.tagsEducationLocale),onClick:f},__("Build your audience with tags","full-site-editing")))}}),"addTagsEducationLink");(0,c.addFilter)("editor.PostTaxonomyType","full-site-editing/add-tags-education-link",l)},115:function(t,e,n){"use strict";n.d(e,{jN:function(){return r.jN}});n(694),n(209),n(377);var r=n(792);n(722)},377:function(t,e,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},792:function(t,e,n){"use strict";n.d(e,{jN:function(){return h}});var r,o=n(394),i=n(699),s=n(898),u=(n(421),n(804)),c=(n(377),n(209),n(358)),a=(n(694),["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"]);Promise.resolve();function f(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(0,s.ve)("//stats.wp.com/w.js?63");var l=new i.EventEmitter;function h(t,e){if(e=e||{},(0,c.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,u.includes)(a,t)){if(r){var n=r(e);e=(0,o.Z)((0,o.Z)({},e),n)}e=(0,u.omitBy)(e,(function(t){return void 0===t})),(0,c.Z)('Recording event "%s" with actual props %o',t,e),f(["recordEvent",t,e]),l.emit("record-event",t,e)}else(0,c.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},722:function(t,e,n){"use strict";n(792)},209:function(t,e,n){"use strict";n(4)},358:function(t,e,n){"use strict";var r=n(49),o=n.n(r);e.Z=o()("calypso:analytics")},694:function(t,e,n){"use strict";n(358)},4:function(t,e,n){"use strict";n(32)},849:function(t,e,n){"use strict";n.d(e,{bU:function(){return l}});var r=n(560),o=n(258),i=n(27),s=n(417),u=n(163),c=n(141),a=(0,c.createContext)(null);function f(){var t,e;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return"";var e=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=t.toLowerCase();return(e.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(u.getLocaleData?null===(t=u.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language:"")}function l(){var t=(0,c.useContext)(a),e=!!t,n=(0,c.useState)(f()),r=(0,o.Z)(n,2),i=r[0],s=r[1];return(0,c.useEffect)((function(){if(!e)return s(f()),u.subscribe((function(){s(f())}))}),[e]),t||i||"en"}(0,s.createHigherOrderComponent)((function(t){return function(e){var n=l();return(0,i.createElement)(t,(0,r.Z)({locale:n},e))}}),"withLocale")},655:function(t,e,n){"use strict";n.d(e,{GG:function(){return r},iT:function(){return o},xn:function(){return i},Xb:function(){return s},hI:function(){return u},mL:function(){return c},vS:function(){return a},_r:function(){return f}});var r=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de"],i=["en","fr","de"],s={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},u=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],c=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],a=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],f=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},498:function(t,e,n){"use strict";n.d(e,{Iu:function(){return v}});var r=n(560),o=n(27),i=n(417),s=n(141),u=n(849),c=n(655),a="http://__domain__.invalid",f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return e.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(c.Xb[r]||r,".").concat(t)),n}},l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,o){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(e=[]),r.pathname=t+r.pathname,e.includes(o)&&"en"!==o&&(r.pathname=o+r.pathname),r}},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof e&&e instanceof RegExp&&!e.test(n.pathname)||t.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n}},p={"wordpress.com/support/":h(c.hI),"wordpress.com/forums/":h(c.mL),"wordpress.com/blog/":h(c.GG,/^\/blog\/?$/),"wordpress.com/tos/":h(c.vS),"wordpress.com/wp-admin/":f("wordpress.com",c.vS),"wordpress.com/wp-login.php":f("wordpress.com",c.vS),"jetpack.com":f("jetpack.com",c._r),"en.support.wordpress.com":l("/support",c.hI),"en.blog.wordpress.com":l("/blog",c.GG,/^\/$/),"en.forums.wordpress.com":l("/forums",c.mL),"automattic.com/privacy/":h(c.iT),"automattic.com/cookies/":h(c.xn),"wordpress.com/help/contact/":function(t,e,n){return n?t:(t.pathname=t.pathname.replace(/\/help\//,"/support/"),h(c.hI)(t,e))},"wordpress.com":function(t,e){return/^\/(checkout|me)(\/|$)/.test(t.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(t.pathname)?t:h(c.vS)(t,e)},"wordpress.com/theme/":function(t,e,n){return n?t:h(c.vS)(t,e)},"wordpress.com/themes/":function(t,e,n){return n?t:h(c.vS)(t,e)}};function d(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(t),a)}catch(u){return t}if(n.origin===a)return t;n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/"));var o=n.pathname.substr(0,1+n.pathname.indexOf("/",1));if("en.wordpress.com"===n.host&&(n.host="wordpress.com"),"/"+e+"/"===o)return t;for(var i=[n.host,n.host+o,n.host+n.pathname],s=i.length-1;s>=0;s--)if(i[s]in p)return p[i[s]](n,e,r).href;return t}function v(){var t=(0,u.bU)();return(0,s.useCallback)((function(e,n,r){return d(e,n||t,r)}),[t])}(0,i.createHigherOrderComponent)((function(t){return function(e){var n=v();return(0,o.createElement)(t,(0,r.Z)({localizeUrl:n},e))}}),"withLocalizeUrl")},340:function(t,e,n){"use strict";n.d(e,{hg:function(){return u},lZ:function(){return c},_W:function(){return f},Yt:function(){return l}});var r=n(49),o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function u(t){return s().has(t)}function c(t,e){var n=s();u(t)?(o('Adding a callback for an existing script from "'.concat(t,'"')),n.get(t).add(e)):(o('Adding a callback for a new script from "'.concat(t,'"')),n.set(t,new Set([e])))}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(),r=n.get(t);if(r){var i='Executing callbacks for "'.concat(t,'"')+(null===e?" with success":' with error "'.concat(e,'"'));o(i),r.forEach((function(t){"function"==typeof t&&t(e)})),n.delete(t)}}function f(){var t=this.getAttribute("src");o('Handling successful request for "'.concat(t,'"')),a(t),this.onload=null}function l(){var t=this.getAttribute("src");o('Handling failed request for "'.concat(t,'"')),a(t,new Error('Failed to load script "'.concat(t,'"'))),this.onerror=null}},606:function(t,e,n){"use strict";n.d(e,{C:function(){return u},k:function(){return c}});var r=n(49),o=n.n(r),i=n(340),s=o()("lib/load-script/dom-operations");function u(t){s('Creating script element for "'.concat(t,'"'));var e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=i._W,e.onerror=i.Yt,e}function c(t){s("Attaching element to head"),document.head.appendChild(t)}},898:function(t,e,n){"use strict";n.d(e,{ve:function(){return u}});var r=n(49),o=n.n(r),i=n(340),s=n(606);o()("package/load-script");function u(t,e){if(!(0,i.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise((function(e,n){(0,i.lZ)(t,(function(t){null===t?e():n(t)}))}));(0,i.lZ)(t,e)}},49:function(t,e,n){var r;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(r++,"%c"===t&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.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+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(r=!1,function(){r||(r=!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`."))}),e.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"],e.log=console.debug||console.log||function(){},t.exports=n(632)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},632:function(t,e,n){var r=n(182);t.exports=function(t){function e(t){var n,r,i,s=null;function u(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(u.enabled){var i=u,s=Number(new Date),c=s-(n||s);i.diff=c,i.prev=n,i.curr=s,n=s,r[0]=e.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var a=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(t,n){if("%%"===t)return"%";a++;var o=e.formatters[n];if("function"==typeof o){var s=r[a];t=o.call(i,s),r.splice(a,1),a--}return t})),e.formatArgs.call(i,r);var f=i.log||e.log;f.apply(i,r)}}return u.namespace=t,u.useColors=e.useColors(),u.color=e.selectColor(t),u.extend=o,u.destroy=e.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==s?s:(r!==e.namespaces&&(r=e.namespaces,i=e.enabled(t)),i)},set:function(t){s=t}}),"function"==typeof e.init&&e.init(u),u}function o(t,n){var r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){var t=[].concat(r(e.names.map(i)),r(e.skips.map(i).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){var n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(378),e.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(t).forEach((function(n){e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var n=0,r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},141:function(t){"use strict";t.exports=window.React},804:function(t){"use strict";t.exports=window.lodash},997:function(t){"use strict";t.exports=window.wp.components},417:function(t){"use strict";t.exports=window.wp.compose},27:function(t){"use strict";t.exports=window.wp.element},799:function(t){"use strict";t.exports=window.wp.hooks},163:function(t){"use strict";t.exports=window.wp.i18n}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(641)}(),window.EditingToolkit=r}();
1
+ !function(){var t={270:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.default=t.exports,t.exports.__esModule=!0},232:function(t,e,n){var r=n(270);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.default=t.exports,t.exports.__esModule=!0},357:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{Z:function(){return r}})},507:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,{Z:function(){return r}})},119:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return r}})},560:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,{Z:function(){return r}})},483:function(t,e,n){"use strict";function r(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],_n=!0,s=!1;try{for(n=n.call(t);!(_n=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);_n=!0);}catch(u){s=!0,o=u}finally{try{_n||null==n.return||n.return()}finally{if(s)throw o}}return i}}n.d(e,{Z:function(){return r}})},7:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:function(){return r}})},394:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(119);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},258:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(507),o=n(483),i=n(237),s=n(7);function u(t,e){return(0,r.Z)(t)||(0,o.Z)(t,e)||(0,i.Z)(t,e)||(0,s.Z)()}},237:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(357);function o(t,e){if(t){if("string"==typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}},557:function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},359:function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},182:function(t,e,n){var r=n(232),o=n(557),i=n(487),s=n(359);t.exports=function(t){return r(t)||o(t)||i(t)||s()},t.exports.default=t.exports,t.exports.__esModule=!0},487:function(t,e,n){var r=n(270);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},421:function(t,e){"use strict";var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(t,e){try{return e(t)}catch(n){return t}}},699:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(n,r){function o(){void 0!==i&&t.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==e&&(i=function(n){t.removeListener(e,o),r(n)},t.once("error",i)),t.once(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function a(t,e,n,r){var o,i,s,a;if(u(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),s=i[e]),void 0===s)s=i[e]=n,++t._eventsCount;else if("function"==typeof s?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=c(t))>0&&s.length>o&&!s.warned){s.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=s.length,a=f,console&&console.warn&&console.warn(a)}return t}function f(){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 l(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function h(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):d(o,o.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),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(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var c=i[t];if(void 0===c)return!1;if("function"==typeof c)r(c,this,e);else{var a=c.length,f=d(c,a);for(n=0;n<a;++n)r(f[n],this,e)}return!0},i.prototype.addListener=function(t,e){return a(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return a(this,t,e,!0)},i.prototype.once=function(t,e){return u(e),this.on(t,l(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,l(this,t,e)),this},i.prototype.removeListener=function(t,e){var n,r,o,i,s;if(u(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,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[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),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(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},i.prototype.listeners=function(t){return h(this,t,!0)},i.prototype.rawListeners=function(t){return h(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},495:function(t,e,n){"use strict";var r=n(212),o=n(561);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}e.BlockHash=i,i.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(t<<=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++]=t>>>24&255,r[o++]=t>>>16&255,r[o++]=t>>>8&255,r[o++]=255&t}else for(r[o++]=255&t,r[o++]=t>>>8&255,r[o++]=t>>>16&255,r[o++]=t>>>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}},32:function(t,e,n){"use strict";var r=n(212),o=n(495),i=n(713),s=n(561),u=r.sum32,c=r.sum32_4,a=r.sum32_5,f=i.ch32,l=i.maj32,h=i.s0_256,p=i.s1_256,d=i.g0_256,v=i.g1_256,m=o.BlockHash,g=[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 y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(y,m),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=c(v(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],m=this.h[2],g=this.h[3],y=this.h[4],w=this.h[5],b=this.h[6],C=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var _=a(C,p(y),f(y,w,b),this.k[r],n[r]),x=u(h(o),l(o,i,m));C=b,b=w,w=y,y=u(g,_),g=m,m=i,i=o,o=u(_,x)}this.h[0]=u(this.h[0],o),this.h[1]=u(this.h[1],i),this.h[2]=u(this.h[2],m),this.h[3]=u(this.h[3],g),this.h[4]=u(this.h[4],y),this.h[5]=u(this.h[5],w),this.h[6]=u(this.h[6],b),this.h[7]=u(this.h[7],C)},y.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(t,e,n){"use strict";var r=n(212).rotr32;function o(t,e,n){return t&e^~t&n}function i(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?o(e,n,r):1===t||3===t?s(e,n,r):2===t?i(e,n,r):void 0},e.ch32=o,e.maj32=i,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},212:function(t,e,n){"use strict";var r=n(561),o=n(285);function i(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function u(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)n.push(parseInt(t[o]+t[o+1],16))}else for(var r=0,o=0;o<t.length;o++){var s=t.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(t,o)?(s=65536+((1023&s)<<10)+(1023&t.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<t.length;o++)n[o]=0|t[o];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=u(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var o=t[r];"little"===e&&(o=s(o)),n+=c(o.toString(16))}return n},e.zero2=u,e.zero8=c,e.join32=function(t,e,n,o){var i=n-e;r(i%4==0);for(var s=new Array(i/4),u=0,c=e;u<s.length;u++,c+=4){var a;a="big"===o?t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c],s[u]=a>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,o=0;r<t.length;r++,o+=4){var i=t[r];"big"===e?(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},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,o){return t+e+n+r+o>>>0},e.sum64=function(t,e,n,r){var o=t[e],i=r+t[e+1]>>>0,s=(i<r?1:0)+n+o;t[e]=s>>>0,t[e+1]=i},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,o,i,s,u){var c=0,a=e;return c+=(a=a+r>>>0)<e?1:0,c+=(a=a+i>>>0)<i?1:0,t+n+o+s+(c+=(a=a+u>>>0)<u?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,o,i,s,u){return e+r+i+u>>>0},e.sum64_5_hi=function(t,e,n,r,o,i,s,u,c,a){var f=0,l=e;return f+=(l=l+r>>>0)<e?1:0,f+=(l=l+i>>>0)<i?1:0,f+=(l=l+u>>>0)<u?1:0,t+n+o+s+c+(f+=(l=l+a>>>0)<a?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,o,i,s,u,c,a){return e+r+i+u+a>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},561:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},378:function(t){var e=1e3,n=60*e,r=60*n,o=24*r,i=7*o,s=365.25*o;function u(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,c){c=c||{};var a=typeof t;if("string"===a&&t.length>0)return function(t){if((t=String(t)).length>100)return;var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!u)return;var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===a&&isFinite(t))return c.long?function(t){var i=Math.abs(t);if(i>=o)return u(t,i,o,"day");if(i>=r)return u(t,i,r,"hour");if(i>=n)return u(t,i,n,"minute");if(i>=e)return u(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=r)return Math.round(t/r)+"h";if(i>=n)return Math.round(t/n)+"m";if(i>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},641:function(t,e,n){"use strict";var r=n(27),o=n(115),i=n(498),s=n(997),u=n(417),c=n(799),a=n(163),__=a.__,f=function(){return(0,o.jN)("wpcom_block_editor_tags_education_link_click")},l=(0,u.createHigherOrderComponent)((function(t){return function(e){var n=(0,i.Iu)();return"post_tag"!==e.slug?(0,r.createElement)(t,e):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(t,e),(0,r.createElement)(s.ExternalLink,{href:n("https://wordpress.com/support/posts/tags/",window.tagsEducationLocale),onClick:f},__("Build your audience with tags","full-site-editing")))}}),"addTagsEducationLink");(0,c.addFilter)("editor.PostTaxonomyType","full-site-editing/add-tags-education-link",l)},115:function(t,e,n){"use strict";n.d(e,{jN:function(){return r.jN}});n(694),n(209),n(377);var r=n(792);n(722)},377:function(t,e,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},792:function(t,e,n){"use strict";n.d(e,{jN:function(){return h}});var r,o=n(394),i=n(699),s=n(898),u=(n(421),n(804)),c=(n(377),n(209),n(358)),a=(n(694),["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"]);Promise.resolve();function f(t){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(t))}"undefined"!=typeof document&&(0,s.ve)("//stats.wp.com/w.js?63");var l=new i.EventEmitter;function h(t,e){if(e=e||{},(0,c.Z)('Record event "%s" called with props %o',t,e),t.startsWith("calypso_")||(0,u.includes)(a,t)){if(r){var n=r(e);e=(0,o.Z)((0,o.Z)({},e),n)}e=(0,u.omitBy)(e,(function(t){return void 0===t})),(0,c.Z)('Recording event "%s" with actual props %o',t,e),f(["recordEvent",t,e]),l.emit("record-event",t,e)}else(0,c.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},722:function(t,e,n){"use strict";n(792)},209:function(t,e,n){"use strict";n(4)},358:function(t,e,n){"use strict";var r=n(49),o=n.n(r);e.Z=o()("calypso:analytics")},694:function(t,e,n){"use strict";n(358)},4:function(t,e,n){"use strict";n(32)},849:function(t,e,n){"use strict";n.d(e,{bU:function(){return l}});var r=n(560),o=n(258),i=n(27),s=n(417),u=n(163),c=n(141),a=(0,c.createContext)(null);function f(){var t,e;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return"";var e=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=t.toLowerCase();return(e.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(u.getLocaleData?null===(t=u.getLocaleData())||void 0===t||null===(e=t[""])||void 0===e?void 0:e.language:"")}function l(){var t=(0,c.useContext)(a),e=!!t,n=(0,c.useState)(f()),r=(0,o.Z)(n,2),i=r[0],s=r[1];return(0,c.useEffect)((function(){if(!e)return s(f()),u.subscribe((function(){s(f())}))}),[e]),t||i||"en"}(0,s.createHigherOrderComponent)((function(t){return function(e){var n=l();return(0,i.createElement)(t,(0,r.Z)({locale:n},e))}}),"withLocale")},655:function(t,e,n){"use strict";n.d(e,{GG:function(){return r},iT:function(){return o},xn:function(){return i},Xb:function(){return s},hI:function(){return u},mL:function(){return c},vS:function(){return a},_r:function(){return f}});var r=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de"],i=["en","fr","de"],s={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},u=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],c=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],a=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],f=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},498:function(t,e,n){"use strict";n.d(e,{Iu:function(){return v}});var r=n(560),o=n(27),i=n(417),s=n(141),u=n(849),c=n(655),a="http://__domain__.invalid",f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return e.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(c.Xb[r]||r,".").concat(t)),n}},l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,o){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(e=[]),r.pathname=t+r.pathname,e.includes(o)&&"en"!==o&&(r.pathname=o+r.pathname),r}},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof e&&e instanceof RegExp&&!e.test(n.pathname)||t.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n}},p={"wordpress.com/support/":h(c.hI),"wordpress.com/forums/":h(c.mL),"wordpress.com/blog/":h(c.GG,/^\/blog\/?$/),"wordpress.com/tos/":h(c.vS),"wordpress.com/wp-admin/":f("wordpress.com",c.vS),"wordpress.com/wp-login.php":f("wordpress.com",c.vS),"jetpack.com":f("jetpack.com",c._r),"en.support.wordpress.com":l("/support",c.hI),"en.blog.wordpress.com":l("/blog",c.GG,/^\/$/),"en.forums.wordpress.com":l("/forums",c.mL),"automattic.com/privacy/":h(c.iT),"automattic.com/cookies/":h(c.xn),"wordpress.com/help/contact/":function(t,e,n){return n?t:(t.pathname=t.pathname.replace(/\/help\//,"/support/"),h(c.hI)(t,e))},"wordpress.com":function(t,e){return/^\/(checkout|me)(\/|$)/.test(t.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(t.pathname)?t:h(c.vS)(t,e)},"wordpress.com/theme/":function(t,e,n){return n?t:h(c.vS)(t,e)},"wordpress.com/themes/":function(t,e,n){return n?t:h(c.vS)(t,e)}};function d(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(t),a)}catch(u){return t}if(n.origin===a)return t;n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/"));var o=n.pathname.substr(0,1+n.pathname.indexOf("/",1));if("en.wordpress.com"===n.host&&(n.host="wordpress.com"),"/"+e+"/"===o)return t;for(var i=[n.host,n.host+o,n.host+n.pathname],s=i.length-1;s>=0;s--)if(i[s]in p)return p[i[s]](n,e,r).href;return t}function v(){var t=(0,u.bU)();return(0,s.useCallback)((function(e,n,r){return d(e,n||t,r)}),[t])}(0,i.createHigherOrderComponent)((function(t){return function(e){var n=v();return(0,o.createElement)(t,(0,r.Z)({localizeUrl:n},e))}}),"withLocalizeUrl")},340:function(t,e,n){"use strict";n.d(e,{hg:function(){return u},lZ:function(){return c},_W:function(){return f},Yt:function(){return l}});var r=n(49),o=n.n(r)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function u(t){return s().has(t)}function c(t,e){var n=s();u(t)?(o('Adding a callback for an existing script from "'.concat(t,'"')),n.get(t).add(e)):(o('Adding a callback for a new script from "'.concat(t,'"')),n.set(t,new Set([e])))}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(),r=n.get(t);if(r){var i='Executing callbacks for "'.concat(t,'"')+(null===e?" with success":' with error "'.concat(e,'"'));o(i),r.forEach((function(t){"function"==typeof t&&t(e)})),n.delete(t)}}function f(){var t=this.getAttribute("src");o('Handling successful request for "'.concat(t,'"')),a(t),this.onload=null}function l(){var t=this.getAttribute("src");o('Handling failed request for "'.concat(t,'"')),a(t,new Error('Failed to load script "'.concat(t,'"'))),this.onerror=null}},606:function(t,e,n){"use strict";n.d(e,{C:function(){return u},k:function(){return c}});var r=n(49),o=n.n(r),i=n(340),s=o()("lib/load-script/dom-operations");function u(t){s('Creating script element for "'.concat(t,'"'));var e=document.createElement("script");return e.src=t,e.type="text/javascript",e.async=!0,e.onload=i._W,e.onerror=i.Yt,e}function c(t){s("Attaching element to head"),document.head.appendChild(t)}},898:function(t,e,n){"use strict";n.d(e,{ve:function(){return u}});var r=n(49),o=n.n(r),i=n(340),s=n(606);o()("package/load-script");function u(t,e){if(!(0,i.hg)(t)&&(0,s.k)((0,s.C)(t)),"function"!=typeof e)return new Promise((function(e,n){(0,i.lZ)(t,(function(t){null===t?e():n(t)}))}));(0,i.lZ)(t,e)}},49:function(t,e,n){var r;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(r++,"%c"===t&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(n){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.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+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(r=!1,function(){r||(r=!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`."))}),e.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"],e.log=console.debug||console.log||function(){},t.exports=n(632)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},632:function(t,e,n){var r=n(182);t.exports=function(t){function e(t){var n,r,i,s=null;function u(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(u.enabled){var i=u,s=Number(new Date),c=s-(n||s);i.diff=c,i.prev=n,i.curr=s,n=s,r[0]=e.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var a=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(t,n){if("%%"===t)return"%";a++;var o=e.formatters[n];if("function"==typeof o){var s=r[a];t=o.call(i,s),r.splice(a,1),a--}return t})),e.formatArgs.call(i,r);var f=i.log||e.log;f.apply(i,r)}}return u.namespace=t,u.useColors=e.useColors(),u.color=e.selectColor(t),u.extend=o,u.destroy=e.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==s?s:(r!==e.namespaces&&(r=e.namespaces,i=e.enabled(t)),i)},set:function(t){s=t}}),"function"==typeof e.init&&e.init(u),u}function o(t,n){var r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){var t=[].concat(r(e.names.map(i)),r(e.skips.map(i).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){var n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(378),e.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(t).forEach((function(n){e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var n=0,r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},141:function(t){"use strict";t.exports=window.React},804:function(t){"use strict";t.exports=window.lodash},997:function(t){"use strict";t.exports=window.wp.components},417:function(t){"use strict";t.exports=window.wp.compose},27:function(t){"use strict";t.exports=window.wp.element},799:function(t){"use strict";t.exports=window.wp.hooks},163:function(t){"use strict";t.exports=window.wp.i18n}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(641)}(),window.EditingToolkit=r}();
tags-education/src/add-tags-education-link.js CHANGED
@@ -21,7 +21,7 @@ const addTagsEducationLink = createHigherOrderComponent( ( PostTaxonomyType ) =>
21
  <PostTaxonomyType { ...props } />
22
  <ExternalLink
23
  href={ localizeUrl(
24
- 'https://wordpress.com/blog/2014/04/21/better-tagging/',
25
  // TODO: remove tagsEducationLocale after fixing useLocalizeUrl.
26
  // See https://github.com/Automattic/wp-calypso/pull/55527.
27
  // `useLocalizeUrl` will try to get the current locale slug from the @wordpress/i18n locale data if missing `LocaleProvider`
21
  <PostTaxonomyType { ...props } />
22
  <ExternalLink
23
  href={ localizeUrl(
24
+ 'https://wordpress.com/support/posts/tags/',
25
  // TODO: remove tagsEducationLocale after fixing useLocalizeUrl.
26
  // See https://github.com/Automattic/wp-calypso/pull/55527.
27
  // `useLocalizeUrl` will try to get the current locale slug from the @wordpress/i18n locale data if missing `LocaleProvider`